beautypg.com

Programming examples, Introduction, Programming the output – AMETEK Lx Series II Programming Manual User Manual

Page 130

background image

Programming Manual

Lx \ Ls Series II

126

6. Programming Examples

6.1

Introduction

This chapter contains examples on how to program your AC 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

These examples in this chapter are 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

Power-on Initialization

When the AC source is first turned on, it wakes up with the output state set OFF. In this state the
output voltage is set to 0. The following commands are given implicitly at power-on:

*RST

*CLS

STATus:PRESet

*SRE 0

*ESE 0

*RST is a convenient way to program all parameters to a known state. Refer to the *RST
command in Section 5 to see how each programmable parameter is set by *RST. Refer to the
*PSC command in Section 5 for more information on the power-on initialization of the *ESE and
the *SRE registers.

Enabling the Output

To enable the output, use the command:

OUTPut ON

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:

VOLTage 125

In the three-phase mode, all phases are programmed to 125 volts rms because the
INSTrument:COUPle at *RST is set to ALL.