Agilent Technologies A.18.00 Weather Radio User Manual


 
416
S:\agilent\8920\8920b\PRGGUIDE\BOOK\CHAPTERS\ibasic.fb
Chapter 7, IBASIC Controller
PROGram Subsystem
Listing A Program
Execute the following command on the external controller to list an IBASIC
program which is resident in the Test Set to the currently specified IBASIC
Controller LIST device.
OUTPUT 714;"PROG:EXEC ’LIST’"
Downloading An IBASIC Program Into the Test Set
The following procedure uses the PROGram Subsystem commands to transfer an
IBASIC program, which is resident in the memory of the external controller, from
the external controller to the Test Set. This procedure assumes the Test Set’s
GPIB address is set to 14. The example also assumes the external controller is an
HP
®
9000 Series 300 Controller.
1. Access the Test Set’s TESTS (IBASIC Controller) screen.
2. Enter a program into the external controller. Use the sample program below if no
program is available. When run, the sample program clears the Test Set’s IBASIC
Controller display area, and prints a message indicating that the download procedure
worked.
10 !THIS IS A SAMPLE PROGRAM
20 CLEAR SCREEN
30 PRINT "DOWNLOADING COMPLETED"
40 END
3. Execute the following commands on the external controller:
OUTPUT 714;"PROG:DEL:ALL"
OUTPUT 714;"PROG:DEF #0"
LIST #714
OUTPUT 714;" "END
4. To verify that the program was downloaded, execute the following commands from the
external controller:
OUTPUT 714;"PROG:EXEC ’LIST’"
The program should be listed on the Test Set’s TESTS (IBASIC Controller) screen.
5. Run the program on the Test Set by first selecting the LOCAL key on the front panel of
the Test Set and then selecting the Run key on the Test Set’s TESTS (IBASIC
Controller) screen.