User`s guide
2-44
GPIB Tutorial and Examples
Program 3
2140
!=================================================================================
2150 !
2160 !ESTABLISH A LOOP TO BE EXECUTED EACH TIME A MOBILE IS TESTED
2170 !
2180 !
2190 Run$=”yes” !Flag for REPEAT loop
2200 REPEAT
2210 Clock(1)=TIMEDATE !Start a test time
clock for call set up
2220 !
2230
!=================================================================================
2240 !
2250 !ACTIVATE THE MOBILE IN TEST MODE
2260 !
2270 CALL Sub_trickmobile(Uut,”TXON”,Dsparfcn(1),Dsppwr(1),Trickfreq,Extloss)
!Activate the test mode mobile
2280 !
2290
!===================================================================================
2300 !
2310 Clock(1)=TIMEDATE-Clock(1) !End call set up timer
2320 Clock(2)=TIMEDATE !Start measurement timer
2330 !
2340
!===================================================================================
2350 !
2360 !PERFORM DSP MEASUREMENTS
2370 !
2380 OUTPUT Uut;”DISP DSP” !Return to the DSP
amplitude main screen
2390 FOR Txcount=1 TO Numdsppwr !Outer loop for Tx
levels
2400 Txlev=Dsppwr(Txcount) !Get Tx level from array
2410 OUTPUT Uut;”CELL:MS:TLEV”;Txlev !Adjust Analyzer to
correct power for mobile
2420 CALL Sub_trickmobile(Uut,”TXLEV”,0,Txlev,Trickfreq,Extloss) !Command test
mode mobile to new Tx Level
2430 Txlevchange$=”true”
2440 FOR Arcount=1 TO Numdsparfcn !Inner loop for ARFCN
2450 Arfcn=Dsparfcn(Arcount) !Get ARFCN from array
2460 Freq=(890+Arfcn*.2)*1000000 !Calculate ARFCN fre-
quency
2470 CALL Sub_trickmobile(Uut,”ARFCN”,Arfcn,0,Freq,Extloss) !Command test mode
mobile to new ARFCN
2480 OUTPUT Uut;”RFAN:FREQ “;Freq !Tune Analyzer to
correct frequency
2490 Count=0 !Establish counter
for repeat measurements
2500 REPEAT !May need to repeat
if mobile not settled
2510 OUTPUT Uut;”TRIG:AST ‘ARM’” !Arm the DSP measure-
ment
2520 OUTPUT Uut;”MEASURE:DSPANALYZER:PHASE:ERROR:RMS?” !Read all the DSP
results: rms phase error
2530 ENTER Uut;Rmspher(Arcount,Txcount)
2540 !Note: program will stick here, waiting for input if mobile fails to provide a
valid signal to trigger
2550 ! the HP 8922M/S. The program will timeout. The timeout code dissarms the
Agilent 8922M/S trigger.
2560 OUTPUT Uut;”MEASURE:DSPANALYZER:PHASE:ERROR:PEAK?” !
peak phase error
2570 ENTER Uut;Pkpher(Arcount,Txcount)
2580 OUTPUT Uut;”MEASURE:DSPANALYZER:PHASE:ERROR:FRE-
QUENCY?”! frequency error
2590 ENTER Uut;Frer(Arcount,Txcount)