User`s guide

2-33
GPIB Tutorial and Examples
Program 2
2200 DATA -40,-28,-18,-10,0,180,360,542.769,547.769,552.769,560.769,570.769 !Mask
corner times in us
2210 DATA -36,-30,-6,4,1,1,1,1,1,-6,-30,-36 !Upper
limits in dB
2220 DATA -60,-60,-60,-60,-1,-1,-1,-1,-60,-60,-60,-60 !Lower lim-
its in dB
2230 FOR X=1 TO 12
2240 READ Masktim !Reas corner times
from DATA statement
2250 Masktim=Masktim/1.E+6 !Convert seconds
2260 Num$=VAL$(X) !Convert index to
string for HPIB
2270 OUTPUT Uut;”DSP:AMPL:”&”time”&Num$&” “;Masktim !Output marker times
2280 NEXT X
2290 FOR X=1 TO 12
2300 READ Maskup !Read and output upper
limits
2310 Num$=VAL$(X)
2320 OUTPUT Uut;”MEAS:DSP:AMPL:”&”AMPL”&Num$&”:HLIM “;Maskup
2330 OUTPUT Uut;”MEAS:DSP:AMPL:”&”AMPL”&Num$&”:HLIM:STATE ON”
2340 NEXT X
2350 FOR X=1 TO 12
2360 READ Masklo !Read and output lower
limits
2370 Num$=VAL$(X)
2380 OUTPUT Uut;”MEAS:DSP:AMPL:”&”AMPL”&Num$&”:LLIM “;Masklo
2390 OUTPUT Uut;”MEAS:DSP:AMPL:”&”AMPL”&Num$&”:LLIM:STATE ON”
2400 NEXT X
2410 !
2420
!=================================================================================
2430 !
2440 !ESTABLISH A LOOP TO BE EXECUTED EACH TIME A MOBILE IS TESTED
2450 !
2460 !
2470 Run$=”yes” !Flag for REPEAT loop
2480 REPEAT
2490 Clock(1)=TIMEDATE !Start a test time
clock for call set up
2500 !
2510
!=================================================================================
2520 !
2530 !PAGE THE MOBILE AND ESTABLISH A CALL
2540 !
2550 !
2560 OUTPUT Uut;”DISP:SCR CELL1” !Display the cell
control screen
2570 PRINT Message$(1) !Output answer call
message
2580 OUTPUT Uut;”CELL:TCH1:MODE ‘hopped’” !Set the TCH to hop
mode
2590 OUTPUT Uut;”CELL:CALL:ORIGINATE” !Page mobile
Agilent 8922M/S org call
2600 Time=0 !Set counter for mobile
to answer
2610 Maxtime=100
2620 REPEAT
2630 Time=Time+1
2640 WAIT 1
2650 OUTPUT Uut;”CELL:CALL:STATUS:STATE?” !Check the call status
for connected
2660 ENTER Uut;Status$
2670 UNTIL Status$=”””CONNECTED””” OR Time>Maxtime
2680 IF Time>Maxtime THEN
2690 Errcount=Errcount+1
2700 Error$(Errcount)=”Call could not be established”