
2-94 Programming Guide
Programming Commands and Examples ESG Family Signal Generators
Saving and Recalling States, Example Program 9
Saving and Recalling States, Example Program 9
In this example, instrument settings are saved in the signal generator’s registers. These
settings can then be recalled separately; either from the keyboard or from the source’s
front panel.
CLEAR and RESET the controller, type the following commands, and RUN the program:
10 !******************************************************************************
20 !
30 ! PROGRAM NAME: REG_SAV Rev. 2A796
40 !
50 ! PROGRAM DESCRIPTION: In this example, instrument settings are saved in the
60 ! instrument’s registers. These settings can then be
70 ! recalled separately either from the keyboard or from
80 ! the front panel of the instrument.
90 !
100 ! CLEAR and RESET the controller and type in the following commands and RUN
110 ! the program:
120 !
130 !******************************************************************************
150 DIM Clear$[10]
160 X=0
170 Sig_gen=719
180 LOCAL Sig_gen
190 CLEAR Sig_gen
200 CLEAR SCREEN
210 OUTPUT Sig_gen;"*RST"
220 OUTPUT Sig_gen;"*CLS"
230 ! *********************************************
240 Sig_in: !
250 REPEAT
260 X=X+1
270 PRINT
280 PRINT "Configure the INSTRUMENT for the settings to be SAVED."
290 LOCAL Sig_gen
300 PRINT "when the setup is complete, Press Continue..."
310 PAUSE
320 CLEAR SCREEN
330 OUTPUT Sig_gen;"*SAV ";X
340 INPUT "Are there anymore setups to be SAVED? Yes/No",No$
350 No$=UPC$(No$[1,1])
360 UNTIL No$="N"
370 WAIT 1
380 PRINT
390 PRINT "You have saved";X;"setups."
400 OUTPUT Sig_gen;"*RST"
Kommentare zu diesen Handbüchern