User`s guide
2-32
GPIB Tutorial and Examples
Program 2
1690 !
1700
!================================================================================
1710 !
1720 !CREATE CA AND MA TABLES FOR HOPPED TCH (executed once only)
1730 !
1740 !
1750 OUTPUT Uut;”DISP:SCR CCON” !Display the cell config screen
1760 OUTPUT Uut;”CCON:STATE ‘settable’” !Take the cell down to edit CA and
MA tables
1770 Mano=0 !Count for number of MA entries
1780 Ca$=”” !String will be used for CA table
1790 FOR X=1 TO 124 !Count through 124 possible ARFCN
1800 Bit$=”0” !Set CA table entry initially to zero
1810 FOR Y=1 TO Numfparfcn !Check all fast power ARFCN for
ARFCN X
1820 IF Fparfcn(Y)=X THEN Bit$=”1” !If ARFCN = X make this CA entry
a one
1830 NEXT Y
1840 FOR Y=1 TO Numdsparfcn !Similarly check DSP ARFCN
1850 IF Dsparfcn(Y)=X THEN Bit$=”1”
1860 NEXT Y
1870 Ca$=Ca$&Bit$ !Add this digit to CA string
1880 IF Bit$=”1” THEN Mano=Mano+1 !If the entry is one, there will
need to be an MA entry
1890 NEXT X
1900 FOR X=1 TO 63 !Count through the MA table
1910 Bit$=”0” !Initial value for MA digit X
1920 IF Mano>0 THEN Bit$=”1” !Place the same nomber of 1s in
the MA as in the CA
1930 Mano=Mano-1
1940 Ma$=Ma$&Bit$
1950 NEXT X
1960 OUTPUT Uut;”CCON:CA “&”’”&Ca$&”’” !Output the CA and MA tables
1970 OUTPUT Uut;”CCON:MA1 “&”’”&Ma$&”’”
1980 OUTPUT Uut;”CCON:MA2 “&”’”&Ma$&”’”
1990 OUTPUT Uut;”DISP:SCR CELL1” !Display the cell control screen,
and select +
2000 OUTPUT Uut;”CELL:MODE ‘ACTIVE CELL +’” !mode for hopped call. Mode change
activates cell
2010 !
2020 !
2030 !============================================================================
2040 !
2050 !SET THE Agilent 8922M/S INITIAL CONDITIONS (executed once only)
2060 !
2070 !
2080 OUTPUT Uut;”MSINFO:PAGING:IMSI “&Imsi$ !Set the paging IMSI
2090 OUTPUT Uut;”CONF:OFL:RFIN “;Extloss !Set the external cable loss
2100 OUTPUT Uut;”CELL:CALL:TCH:ARFCN “;Dsparfcn(1) !Set the ARFCN to the first
expected test point
2110 OUTPUT Uut;”CELL:MS:TLEV “;Dsppwr(1) !Set the mobile Tx Level to the
first test point
2120 OUTPUT Uut;”CONF:OFL:MODE ‘ON’” !Turn external offset mode ON to
use cable loss
2130 OUTPUT Uut;”CW:PMZERO” !Zero the power meter
2140 OUTPUT Uut;”RFG:AMPL1 “;Bchpwr !Set the downlink power for normal
signalling
2150 OUTPUT Uut;”TRIG:MODE ‘SINGLE’” !Set the DSP meas trigger to single
trig mode
2160 OUTPUT Uut;”TRIG:BET ‘SINGLE’” !Set bit error meas trigger to sin-
gle trig mode
2170 OUTPUT Uut;”BET:BITS1 “;Bits1 !Set the number of bits to be mea-
sured for bit error
2180 OUTPUT Uut;”DISP:SCR DSP” !Display the DSP amplitude main
screen to enter limits
2190 OUTPUT Uut;”DISP:SCR:DSP:VIEW ‘AMPL MAIN’” !for power versus time mask