639
Chapter 8, Programming The Call Processing Subsystem
Example Programs
10010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr
10015 ON TIMEOUT Bus_addr,5 RECOVER Timed_out
10020 OUTPUT Inst_addr;"DISP ACNT;:CALLP:MODE ’MEAS’;:MEAS:RFR:POW?;FREQ:ERR?"
10030 ENTER Inst_addr;Power,Freq_error
10040 OUTPUT Inst_addr;"MEAS:AFR:FREQ?;FM?"
10050 ENTER Inst_addr;Audiofreq,Deviation
10060 PRINT USING "K,2D.3D,K";"Carrier Power = ";Power;" Watts"
10070 PRINT USING "K,2D.3D,K";"Audio Frequency = ";Audiofreq/1000;" kHz"
10080 PRINT USING "K,2D.3D,K";"FM Deviation = ";Deviation/1000;" kHz"
10090 PRINT USING "K,2D.3D,K";"Carrier Freq Error = ";Freq_error/1000;" kHz"
10100 SUBEXIT
10110 Timed_out:!
10120 ON TIMEOUT Bus_addr,5 GOTO Cannot_recover
10130 CLEAR Inst_addr
10140 OUTPUT Inst_addr;"trig:abort;mode:retr:rep"
10150 DISP "you should have the box back."
10160 ENABLE
10170 Cannot_recover:!
10180 DISP "Cannot regain control of the Test Set."
10190 STOP
10200 SUBEND
10210 !
11010 Meas_sinad: SUB Meas_sinad
11020 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr
11030 INTEGER N
11035 ON TIMEOUT Bus_addr,5 RECOVER Timed_out
11040 OUTPUT Inst_addr;"DISP CME;:AFG1:DEST ’FM’;FREQ 1KHZ;FM 8KHZ;FM:STAT ON"
11050 OUTPUT Inst_addr;"AFAN:INP ’AUDIO IN’;DEMP ’OFF’;DET ’RMS’"
11060 OUTPUT Inst_addr;"AFAN:FILT1 ’C MESSAGE’;FILT2 ’>99KHZ LP’"
11070 OUTPUT Inst_addr;"MEAS:AFR:SEL ’SINAD’;:RFG:AMPL -116DBM"
11080 OUTPUT Inst_addr;"TRIG:MODE:RETR SINGLE;SETT FULL"
11090 Avg_sinad=0
11100 FOR N=1 TO 5
11110 OUTPUT Inst_addr;"TRIG;:MEAS:AFR:SINAD?"
11120 ENTER Inst_addr;Sinad
11130 Avg_sinad=AvSinad
11140 NEXT N
11150 PRINT USING "K,3D.2D,K";"SINAD = ";Avg_sinad/N;" dB at -116 dBm."
11160 OUTPUT Inst_addr;"TRIG:MODE:RETR REP;SETT FULL"
11170 OUTPUT Inst_addr;"RFG:AMPL -47DBM;:DISP ACNT"
11180 SUBEXIT
11190 Timed_out:!
11200 ON TIMEOUT Bus_addr,5 GOTO Cannot_recover
11210 CLEAR Inst_addr
11220 OUTPUT Inst_addr;"trig:abort;mode:retr:rep"
11230 DISP "you should have the box back."
11240 ENABLE
11250 Cannot_recover:!
11260 DISP "Cannot regain control of the Test Set."
11270 STOP
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...