
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
Summary of Contents for 33120A
Page 2: ......
Page 10: ...8 ...
Page 14: ...Contents Contents 12 ...
Page 15: ...1 Quick Start 1 ...
Page 31: ...2 Front Panel Menu Operation 2 ...
Page 55: ...3 Features and Functions 3 ...
Page 126: ...124 ...
Page 127: ...4 Remote Interface Reference 4 ...
Page 204: ...SCPI Status System Chapter 4 Remote Interface Reference The SCPI Status Registers 202 ...
Page 228: ...226 ...
Page 229: ...5 Error Messages 5 ...
Page 244: ...242 ...
Page 245: ...6 Application Programs 6 ...
Page 272: ...270 ...
Page 273: ...7 Tutorial 7 ...
Page 299: ...8 Specifications 8 ...
Page 304: ...302 ...