
Programming Guide 2-95
ESG Family Signal Generators Programming Commands and Examples
Saving and Recalling States, Example Program 9
410 ! **********************************************
420 Sig_out: !
430 INPUT "ENTER the Register number to be RECALLED or ENTER 0 to exit.",Reg1
440 CLEAR SCREEN
450 IF Reg1=0 THEN
460 PRINT
470 PRINT "You have requested to exit the program the program has been terminated."
480 GOTO Ins_lcl
490 END IF
500 IF Reg1>X THEN
510 PRINT
520 PRINT "You have requested a Register number not recognized by this executive."
530 GOTO Ins_lcl
540 END IF
550 OUTPUT Sig_gen;"*RCL ";Reg1
560 CLEAR SCREEN
570 PRINT
580 PRINT "The instrument has been set to the values from Registar";Reg1;"."
590 GOTO Sig_out
600 ! **********************************************
610 Ins_lcl: !
620 LOCAL Sig_gen
630 PRINT
640 WAIT 1
650 PRINT "The instrument has been returned to local control...Press RUN to start again."
660 END
Program Comments
10 to 140: Title and program description
150: Dimension string Clear$ to contain responses.
160: Assigns a value of 0 to X variable.
170: Assigns the signal generator’s GPIB address to a variable.
180: Places the signal generator into LOCAL mode.
190: Resets the signal generator’s parser and clear any pending output from the source.
200: Clears the controller’s display.
210: Sets the signal generator to a defined state for programming.
220: Clears the signal generator’s Status Byte Register.
230: Program border
240 to 360: Subroutine: Sig_in. Allows the operator to configure the measurement and store the
settings in save/recall registers. The subroutine will display the total number of
instrument settings that were saved.
Comentarios a estos manuales