
User Manual 301/302
Example 1
The following example programs the Model 301/302 to turn on the
main outputs and program the waveform frequency to 20 MHz. Then,
program channel A to output square waveform with an amplitude of 2
V and offset of 0.5V, and program channel B to output triangular
waveform with an amplitude of 1 V and offset of 0.5 V.
/* Reset the Model 301/302 to its default condition as listed in Table 3-
1. */
:RESet;
/* Change the output waveform to square. Note that there is no need
to use the FUNC:MODE command as the default value after RESet is
FIXed. */
:FUNCtion:SHAPe SQUare;
/* Change the frequency to 20 MHz. Note that frequency setting is
common for both channels. */
:FREQuency 20e6;
/* Change channel A amplitude to 2 V and the offset to 0.5 V. */
:VOLTage 2;
:VOLTage: OFFSet 0.5;
Note that output peak voltage may never exceed ±2.5 V. Amplitude
and offset may be set freely within a 5 V window, as long as the
following limits are kept:
| offset | + (Vp-p ÷ 2) ≤ 5
/* Turn on the channel A main output. */
:OUTPut ON;
/* The following command changes control to channel B. */
:INSTrument:SELect 2;
/* Change channel 2 amplitude to 2 V and the offset to 0.5 V. */
:VOLTage 2;
:VOLTage: OFFSet 0.5;
Configuring the Instrument
19
Comentarios a estos manuales