
2-90 Programming Guide
Programming Commands and Examples ESG Family Signal Generators
Generating a Step-Swept Signal, Example Program 7
Generating a Step-Swept Signal, Example Program 7
In this example, the signal generator will be programmed to continuously step sweep a
defined set of points from 500 MHz to 800 MHz and dwell 500 ms at each of the points.
The signal generator will then be set to LOCAL mode to allow the user to make
adjustments from the front panel.
CLEAR and RESET the controller, type the following commands, and RUN the program.
10 !******************************************************************************
20 !
30 ! PROGRAM NAME: STEP_SWEEP Rev. 2A796
40 !
50 ! PROGRAM DESCRIPTION: In this example, the generator will be setup to
60 ! continuously step sweep a defined set of points from
70 ! 500 MHz to 800 MHz and dwell 500 ms at each of the
80 ! points. The generator will then be set for local front
90 ! panel control to allow the operator to make adjustments.
100 !
110 ! CLEAR and RESET the controller and type in the following commands and RUN
120 ! the program:
130 !
140 !******************************************************************************
150 !
160 Sig_gen=719
170 LOCAL Sig_gen
180 CLEAR Sig_gen
190 CLEAR SCREEN
200 OUTPUT Sig_gen;"*RST"
210 OUTPUT Sig_gen;"*CLS"
220 OUTPUT Sig_gen;"FREQ:MODE LIST"
230 OUTPUT Sig_gen;"LIST:TYPE STEP"
240 OUTPUT Sig_gen;"FREQ:STAR 500 MHz"
250 OUTPUT Sig_gen;"FREQ:STOP 800 MHz"
260 OUTPUT Sig_gen;"SWE:POIN 10"
270 OUTPUT Sig_gen;"SWE:DWEL .5 S"
280 !OUTPUT Sig_gen;"INIT" ! Used for single sweep
290 OUTPUT Sig_gen;"INIT:CONT ON" ! ON for continuous sweep; OFF for single sweep
300 OUTPUT Sig_gen;"POW:AMPL -5 dBm"
310 OUTPUT Sig_gen;"OUTP:STAT ON"
320 PRINT "The signal generator is continuously step sweeping from"
330 PRINT "500 to 800 MHz. The generator is dwelling 500 ms per step"
340 PRINT "for the defined 10 steps."
350 WAIT 3
360 LOCAL Sig_gen
370 PRINT
Comentarios a estos manuales