User`s manual
Chapter 8 287
IBASIC Controller
PROGram Subsystem
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 controller. 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 that follow represent the
capabilities of the Agilent Technologies Rocky Mountain BASIC (RMB)
programming language running on an HP 9000/300 Series Controller.
When a PROGram Subsystem command is sent to the Test Set through
HP-IB 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.
Entering a new IBASIC program line
IBASIC program lines can be entered directly into the Test Set’s RAM
memory, one line at a time, from an external controller using the
PROGram:EXECute command as follows:
Example 8-49 Example
PROG:EXEC ’<new program line number/program line>’
where <new program line number/program line> represents a valid
IBASIC program line.
For example, to enter the following new program line into the Test Set,
Example 8-50 Example
20 A=3.14
execute the following command from the external controller:
Example 8-51 Example
OUTPUT 714;"PROG:EXEC ’20 A=3.14’"
Quoted strings, such as those used in PRINT commands, must use
double quotes. For example,