Agilent Technologies A.18.00 Weather Radio User Manual


 
415
Chapter 7, IBASIC Controller
PROGram Subsystem
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:
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,
20 A=3.14
execute the following command from the external controller:
OUTPUT 714;"PROG:EXEC ’20 A=3.14’"
Quoted strings, such as those used in PRINT commands, must use double quotes.
For example,
OUTPUT 714;"PROG:EXEC ’30 PRINT ""TEST""’"
Editing an existing IBASIC program line
Existing IBASIC program lines which are resident in the Test Set’s RAM memory
can be edited, one line at a time, from an external controller using the
PROGram:EXECute command as follows:
PROG:EXEC ’<existing program line number/modified program line>’
where <existing program line number/modified program line> represents an
existing IBASIC program line.
For example, to edit the following existing program line in the Test Set.
30 OUTPUT 814;"AFAN:DEMP:GAIN 20 dB"
to
30 OUTPUT 814;"AFAN:DEMP:GAIN 10 dB"
execute the following command from the external controller:
OUTPUT 714;"PROG:EXEC ’30 OUTPUT 814;""AFAN:DEMP:GAIN 10 dB""’"
Quoted strings, such as those used in OUTPUT commands, must use double
quotes.