Agilent Technologies 8922M Cell Phone User Manual


 
8-41
Instrument BASIC
Programming and Using the TESTS Subsystem
Program Listing Explanation
The following is line-by-line explanation of the commands shown in the previous
program example. Each explanation is in the format;
Linenumber: Command Description
10: This first line must contain the name of the Library and the program. This is
checked by the TESTS subsystem when loading the program.
130: Establish a common I_o$ string for the ENTER statements.
150: Establish common Rx_f and Tx_f that can be used by the subprograms (tests).
180: The Integer Test_return is used by the subprograms to indicate the test ended
with some error condition. The meaning of Test_return could be expanded to
include the status of the test (i.e. PASS/FAIL).
200: Clears the IBASIC Screen.
210: Prints and indication that the Demo program is running.
240: Allows the User to stop the program using a softkey.
270: Clear the Internal Bus of the Agilent 8922M/S
310: Ch keeps track of which channel we are currently testing.
320: Now Repeat for all Frequencies:
330: Request all the channel values from the Agilent 8922M/S.
340: I_o$ gets the string return.
370: The Rx frequency is pulled from the string.
390: The Tx frequency is pulled from the string.
410: T_it$ gets either a “Y” or an “N” depending on whether this frequency is to be
tested.
430: If a Prime channel has been specified then Prime$ gets a value of “Y”.
490: If this frequency is to be tested:
500-520: Print out some information on the test about to be performed.
530: Run_ts holds the value of the test currently being run.
550: Repeat for all Specified Tests:
560: Done_t is initialized to not completed.
580: Get the Test specifier for the current Test.