User and Programming Manual - Rev H
California Instruments
May 2000
P Series
78
15. Programming Examples
15.1 Introduction
This chapter contains examples on how to program the AC source. Simple examples show
you how to program:
•
output functions such as voltage and frequency
•
measurement functions
The examples in this chapter use generic SCPI commands. See Chapter 12 for information
about encoding the commands as language strings. Where appropriate, optional commands
are shown for clarity in the examples.
15.2 Programming the Output
Power-on Initialization
When the AC source is first turned on, it wakes up with the output state defined by the PON
register number. If the register number or the register has no valid data, the AC source
initializes to the following state.
VOLT 0
FREQ 60
OUTP 0
VOLT:RANG 136
The following commands are given implicitly at power-on:
*RST
*CLS
*SRE 128
*ESE 0
*RST is a convenient way to program all parameters to a known state. Refer to Table 12 under
the *RST command in paragraph 14.4.5 to see how each programmable parameter is set by
*RST.
Enabling the Output
To enable the output, use the command:
OUTPut 1
Voltage and Frequency
The AC rms output voltage is controlled with the VOLTage command. For example, to set the
AC output voltage to 125 volts rms, use:
VOLTage 125