414
S:\agilent\8920\8920b\PRGGUIDE\BOOK\CHAPTERS\ibasic.fb
Chapter 7, IBASIC Controller
PROGram Subsystem
Example BASIC program without using the :WAIT? query command
10 OUTPUT 714;"PROG:STAT RUN"
20 LOOP
30 OUTPUT 714;"PROG:STAT?"
40 ENTER 714;State$
50 EXIT IF State$="STOP" OR State$="PAUS"
60 END LOOP
70 DISP "IBASIC program not running."
80 END
Example BASIC program using the :WAIT? query command
10 OUTPUT 714;"PROG:STAT RUN"
20 OUTPUT 714;"PROG:WAIT?"
30 ENTER 714;Dummy !Program will hang here until IBASIC program
stops
40 DISP "IBASIC program not running."
50 END
Using the EXECute Command
The PROGram:EXECute command can be used to list, edit and control IBASIC
programs in the Test Set from an external con troller. This eliminates having to use
the cursor control knob and provides a more efficient way of making small
changes to programs. The full range of IBASIC program commands can be
executed from an external controller using the PROGram:EXECute command.
The following operations are given as typical examples of using the
PROGram:EXECute command.
NOTE: The program commands and syntax used to send data from the external controller to the Test
Set will depend upon the programming language used in the external controller. The examples
which follow represent the capabilities of Rocky Mountain BASIC programming language
running on an HP® 9000/300 Series Controller.
NOTE: When a PROGram Subsystem command is sent to the Test Set through GPIB from an external
controller the Test Set is put into REMOTE mode. The Test Set must be put in LOCAL mode
to use the front panel keys or to use the serial ports to input data into the IBASIC Command
line.