515
Chapter 8, Programming the Call Processing Subsystem
Programming the ANALOG MEAS Screen
200 SUB Meas_sinad
210 INTEGER Loop_counter
220 OUTPUT 714;"DISP CME"
230 OUTPUT 714;"AFG1:DEST ’FM’;FREQ 1KHZ;FM 8KHZ;FM:STAT ON"
240 OUTPUT 714;"AFAN:INP ’AUDIO IN’;DEMP ’OFF’;DET ’RMS’"
250 OUTPUT 714;"AFAN:FILT1 ’C MESSAGE’;FILT2 ’>99KHZ LP’"
260 OUTPUT 714;"MEAS:AFR:SEL ’SINAD’"
270 OUTPUT 714;"RFG:AMPL -116DBM"
280 OUTPUT 714;"TRIG:MODE:RETR SINGLE;SETT FULL"
290 Running_total=0
300 FOR Loop_counter=1 TO 5
310 OUTPUT 714;"TRIG;:MEAS:AFR:SINAD?"
320 ENTER 714;Sinad
330 Running_total=Running_total+Sinad
340 NEXT Loop_counter
350 Avg_sinad=Running_total/Loop_counter
360 PRINT USING "K,3D.2D,K";"SINAD = ";Avg_sinad;" dB at -116 dBm."
370 OUTPUT 714;"TRIG:MODE:RETR REP;SETT FULL"
380 OUTPUT 714;"RFG:AMPL -47DBM;:DISP ACNT"
390 SUBEND