8-38
Instrument BASIC
Programming and Using the TESTS Subsystem
Program Example
The following example IBASIC program uses the basic algorithm shown above and
the TESTS subsystem to execute a number of test subroutines at a number of
defined test frequencies. Also included are examples of how to interact with the
user-interface to allow a user to access parameters, specifications, and configuration
fields to define a specific set of test requirements.
An explanation of the program example is given at the end of the listing.
Program Listing
10 ! DEMO_1
20 !
30 ! THE FIRST LINE MUST CONTAIN THE NAME OF THE LIBRARY
40 !
50 !__________________________________________________________
60 !
70 ! THIS PROGRAM IS A DEMO PROGRAM TO DEMONSTRATE THE USE
80 ! OF THE TEST SUBSYSTEM ON THE Agilent 8922M
90 !
100 ! REVISION: 1 APRIL, 1991
110 !___________________________________________________________
120 !
130 COM /I_o/ I_o$[470]
140 ! INPUT OUTPUT STRING
150 COM /Freq/ Rx_f,Tx_f
160 ! PRESENT RX AND TX FREQUENCIES IN MHZ
170 !
180 INTEGER Test_return
190 ! TITLE SCREEN FOR OUR TESTS
200 CLEAR SCREEN
210 PRINT TABXY(2,2),”___DEMO PROGRAM FOR THE TESTS SUBSYSTEM___”
220 !
230 ! SET UP A SOFT KEY TO HALT THE PROGRAM
240 ON KEY 1 LABEL “Stop Test”,5 GOTO Stp_test
250 !
260 ! CLEAR THE INTERNAL HP 8922M BUS
270 CLEAR 800
280 !
290 ! NOW READ THE TEST FREQUENCIES IN ONE AT A TIME AND DO THE
300 ! SEQUENCE OF TESTS ON THEM
310 Ch=1
320 REPEAT
330 OUTPUT 800;”TESTS:FREQ? “&VAL$(Ch)
340 I_o$=””
350 ENTER 800;I_o$
360
!
SET THE VALUE OF THE RX FREQUENCY
370 Rx_f=VAL(I_o$[4;12])
380
!
SET THE VALUE OF THE TX FREQUENCY
390 Tx_f=VAL(I_o$[30;12])
400
!
SET WHETHER TO TEST THIS FREQUENCY
410 T_it$=I_o$[56;1]
420
!
SET IF THIS IS A PRIME FREQUENCY
430 IF (LEN(I_o$)>57) THEN
440 Prime$=I_o$[58;1]
450 ELSE
460 Prime$=”N”
470 END IF
480
!
IF THIS FREQUENCY IS TO BE TESTED
Содержание 8922M
Страница 8: ...Contents Contents 6...
Страница 21: ...1 1 1 Installing Your Agilent 8922M S...
Страница 24: ...1 4 Installing Your Agilent 8922M S Fuses and Power Cords Power Cords Agilent Part Agilent...
Страница 29: ...2 1 2 Making Measurements...
Страница 59: ...2 31 Making Measurements If You Have Problems with a Measurement Figure 2 16...
Страница 61: ...2 33 Making Measurements If You Have Problems with a Measurement Trigger Range For Pulsed RF...
Страница 75: ...2 47 Making Measurements Advanced Features...
Страница 76: ...3 1 3 Verifying Performance...
Страница 106: ...3 31 Verifying Performance Agilent Technologies 8922M S Specifications...
Страница 224: ...4 118 Screens Service Service This screen is documented in the service documentation To escape press PREV...
Страница 235: ...4 129 Screens Tests Tests Instrument BASIC Refer to chapter 8 Instrument BASIC for information about the Tests Screen...
Страница 236: ...4 130 Screens Tests...
Страница 237: ...5 1 5 Keys...
Страница 238: ...5 2 Keys Key Map Key Map...
Страница 275: ...6 27 Connectors Timing Diagrams Timing Diagrams Figure 6 2 Digital Demodulation Timing Specification Table...
Страница 276: ...6 28 Connectors Timing Diagrams Figure 6 3 Digital Demod Timing Diagram...
Страница 277: ...6 29 Connectors Timing Diagrams Figure 6 4 Frequency Hop Timing Specification Table...
Страница 278: ...6 30 Connectors Timing Diagrams Figure 6 5 RF Generator Hop Address Source Ext Timing Diagram...
Страница 279: ...6 31 Connectors Timing Diagrams Figure 6 6 RF Analyzer Hop Address Source Ext Timing Diagram...
Страница 280: ...6 32 Connectors Timing Diagrams Figure 6 7 RF Generator Hop Address Source Int Timing Diagram...
Страница 281: ...6 33 Connectors Timing Diagrams Figure 6 8 RF Analyzer Hop Address Int Timing Diagram...
Страница 282: ...6 34 Connectors Timing Diagrams Figure 6 9 Reset Hop Once Address Source Int Timing Diagram...
Страница 283: ...6 35 Connectors Timing Diagrams Figure 6 10 Reset and Hold Hop Address Source Int Timing Diagram...
Страница 284: ...6 36 Connectors Timing Diagrams Figure 6 11 Hop Inhibit Address Source Int Timing Diagram...
Страница 297: ...8 1 8 Instrument BASIC...
Страница 341: ...A 1 A APPENDIX A...
Страница 364: ...A 24 APPENDIX A Protocol Log of a Typical Call...
Страница 365: ...B 1 B Glossary...
Страница 370: ...B 6 Glossary...