User`s guide

40
GPIB Commands
Example
Example
10 !---------------------------------------------------------------------!
20 ! !
30 ! Example program to perform a channel assignment from the EGSM band !
40 ! to the DCS band and back again !
50 ! !
60 ! !
70 ! !
80 !---------------------------------------------------------------------!
90 !
100 !
110 ! Setup Call parameters
120 !
130 Dcs_arfcn=698 ! ARFCN to assign to in the DCS band
140 Gsm_arfcn=30 ! ARFCN to assign to in the EGSM band
150 Imsi$=”””001012345678901””” ! IMSI used to page the Mobile
160 !
170 !
180 ! Setup GPIB parameters
190 !
200 Page_tout=20 ! Timeout when waiting for the call to connect. In seconds
210 Assign_tout=5 ! Timeout when waiting for the assignment to complete
220 Addr=714 ! GPIB address of the HP/Agilent 8922
230 !
240 !
250 !
260 ! Prepare the Test Set for a call. For Dual Band operation, the call
270 ! must be originated in the E-GSM band, using the E-GSM Radio Mode (which
280 ! should be used to test Phase 2 P-GSM).
290 !
300 DISP “Resetting 8922 Test Set”
310 OUTPUT Addr;”*RST”
320 WAIT 5
330 OUTPUT Addr;”CONF:RAD ‘E-GSM’”
340 OUTPUT Addr;”CONF:RAD?”
350 ENTER Addr;A$
360 IF A$<>”””E-GSM””” THEN
370 PRINT “Instrument did not change to E-GSM Radio Mode.”
380 STOP
390 END IF
400 !
410 !
420 !
430 ! Wait for the Mobile to find Service
440 !
450 DISP “Switch mobile on, Press ““Continue”” when mobile finds service”