Agilent Technologies 8922M Cell Phone User Manual


 
8-18
Instrument BASIC
Entering and Editing Programs
Other PROG Commands
Two additional PROG Commands are used to prepare the Agilent 8922M/S’s
IBASIC Controller RAM for receiving programs.
OUTPUT Addr;”PROG:DEL”
deletes any programs currently residing in RAM.
OUTPUT Addr;”PROG:DEF #0”
defines the address in RAM where a downloaded program will be stored.
Preparing the Agilent 8922M/S to Receive Programs
1 Configure the GPIB port as described in this chapter, ‘GPIB Configuration For
Programming” on page 8-5.
2 Access the IBASIC Controller screen.
Downloading A Program Into the Agilent 8922M/S
This procedure assumes your Agilent 8922M/S’s GPIB address is 14. If it is not,
change the address in the following procedure to match your instrument’s address.
1 Load the IBASIC program to be downloaded into your controller.
2 Enter these commands to transfer the program to the Agilent 8922M/S:
10 DIM LINE$[200], FILE_NAME$[120]
20 Addr=714
30 INPUT ”NAME OF (ASCII) IBASIC FILE TO DOWN- LOAD?”, FILE_NAME
$
40 ASSIGN @FILE TO FILE_NAME$; FORMAT ON
50 ON END @FILE GOTO DONE
60 OUTPUT Addr;”PROG:DEL”
70 OUTPUT Addr;”PROG:DEF #0”
80 WHILE (1)
90 ENTER @FILE; LINE$
100 OUTPUT Addr; LINE$
110 END WHILE
120 DONE: !
130 OUTPUT Addr;””END
140 PRINT ”Done with down-load”
150 END
Figure 8-6 Download Program for Computers using GPIB
To verify that your code was downloaded, type in the command- OUTPUT
714;”PROG:EXEC ‘LIST ’”. Your program should be listed on the Agilent
8922M/S’s IBASIC Controller screen.