154 Sequoia Series
6. Programming Examples
6.1 Introduction
This chapter contains examples on how to program the power source. Simple examples show you
how to program:
• Output functions such as voltage, frequency, and phase
• The transient waveform generator
• Internal and external triggers
• Measurement functions
• User-defined waveforms
• The status and protection functions
The examples in this chapter use generic SCPI commands. See chapter 2 for information about
encoding the commands as language strings. Where appropriate, optional commands are shown for
clarity in the examples.
6.2 Programming the Output
6.2.1 Power-on Initialization
When the power source is first turned on, it wakes up with the output state defined by the PONSetup.
In this state the output voltage is set to a value defined by the INIT:VOLT. The following commands
are given implicitly at power-on:
*RST
*CLS
*SRE 0
*ESE 0
*RST is a convenient way to program all parameters to a known state. Refer to Table 5-1 under the
*RST command in paragraph 5.9 to see how each programmable parameter is set by *RST. Refer to
the *PSC command in chapter 0 for more information on the power-on initialization of the *ESE and
the *SRE registers.
6.2.2 Enabling the Output
To enable the output, use the command:
OUTPut ON
6.2.3 AC 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:
MODE AC
VOLTage 125
The DC output voltage is controlled with the VOLTage:DC command. For example, to set the DC
output voltage to 100 volts DC, use:
MODE DC
VOLTage:DC 100