Using the Low-Level Commands
This program teaches the following concepts:
How to use the low-level commands to set up an AM waveform.
How to use the *SAV command to store the instrument configuration
in memory.
BASIC / GPIB (Program 2)
10 !
20 ! This program uses low-level SCPI commands to configure
30 ! the function generator to output an AM waveform.
40 ! This program also shows how to use "state storage" to
50 ! store the instrument configuration in memory.
60 !
70 CLEAR 7 ! Clear interface - send "device clear"
80 ASSIGN @Fgen TO 710 ! Assign I/O path to address 710
90 OUTPUT @Fgen;"*RST" ! Reset the function generator
100 !
110 OUTPUT @Fgen;"OUTP:LOAD 50" ! Output termination is 50 ohms
120 OUTPUT @Fgen;"FUNC:SHAP SIN" ! Carrier waveshape is sine wave
130 OUTPUT @Fgen;"FREQ 5000;VOLT 5" ! Carrier frequency is 5 kHz @ 5 Vpp
140 OUTPUT @Fgen;"AM:INT:FUNC SIN" ! Modulating waveshape is sine
150 OUTPUT @Fgen;"AM:INT:FREQ 200" ! Modulating frequency is 200 Hz
160 OUTPUT @Fgen;"AM:DEPT 80" ! Modulation depth is 80%
170 OUTPUT @Fgen;"AM:STAT ON" ! Turn AM modulation on
180 !
190 OUTPUT @Fgen;"*SAV 1" ! Store state in memory location 1
200 !
210 ! Use the "*RCL 1" command to recall the stored state
220 !
230 END
Chapter 6 Application Programs
Using the Low-Level Commands
252