516
S:\agilent\8920\8920b\PRGGUIDE\BOOK\CHAPTERS\callproc.fb
Chapter 8, Programming the Call Processing Subsystem
Programming the ANALOG MEAS Screen
Example FM Hum & Noise Measurement
The following example code segment shows how to program the ANALOG MEAS
screen to make an FM Hum & Noise measurement. The code segment represents
a HP
®
BASIC subprogram.
In order for this subprogram to work properly the following conditions must be
true when the subroutine is called:
• Call Processing Subsystem is in the Connect state (that is, the Connect annunciator
is lit)
• the mobile station’s speaker output is connected to the Test Set’s AUDIO IN connector
• the mobile station’s microphone input must be connected to the Test Set’s AUDIO OUT
connector
The intended purpose of this example subprogram is to illustrate how to program
the
ANALOG MEAS screen. There are a variety of ways to make an FM Hum &
Noise measurement. The method used in this example is based upon the EIA/IS-
19-B Standard (May 1988). The method and standard chosen for any particular
application will depend upon the mobile station being tested.
200 SUB Meas_hum_noise
210 OUTPUT 714;"DISP CME"
220 OUTPUT 714;"AFG1:DEST ’AUDIO OUT’;FREQ 1KHZ;OUTP:INCR .01V"
230 OUTPUT 714;"AFG1:OUTP 50 MV"
240 OUTPUT 714;"AFAN:INP ’FM DEMOD’;DEMP ’750 US’;DET ’PK+’"
250 OUTPUT 714;"AFAN:FILT1 ’C MESSAGE’;FILT2 ’>99KHZ LP’"
260 OUTPUT 714;"MEAS:AFR:SEL ’AF FREQ’"
270 OUTPUT 714;"RFG:AMPL -47DBM"
280 OUTPUT 714;"TRIG:MODE:RETR SINGLE;SETT FULL"
290 REPEAT
300 OUTPUT 714;"TRIG;:MEAS:AFR:FM?"
310 ENTER 714;Deviation
320 IF Deviation>8300 THEN OUTPUT 714;"AFG1:OUTPut:INCR DOWN"
330 IF Deviation<7700 THEN OUTPUT 714;"AFG1:OUTPut:INCR UP"
340 UNTIL Deviation>=7700 AND Deviation<=8300
350 OUTPUT 714;"AFAN:DET ’RMS’"
360 OUTPUT 714;"TRIG;:MEAS:AFR:FM?"
370 ENTER 714;Deviation
380 OUTPUT 714;"MEAS:AFR:FM:REF:STAT ON;VAL
"&VAL$(Deviation)&"HZ"
390 OUTPUT 714;"AFG1:OUTPut:STAT OFF"
400 OUTPUT 714;"TRIG;:MEAS:AFR:FM?"
410 ENTER 714;Deviation
420 PRINT USING "K,3D.2D,K";"FM Hum and Noise = ";Deviation;" dB."
430 OUTPUT 714;"TRIG:MODE:RETR REP;SETT FULL"
440 OUTPUT 714;"MEAS:AFR:FM:REF:STAT OFF"
450 SUBEND