Program Examples
Publication 21555, Rev. E, September 2002 A-5
740 PRINT The power meter reports the following error.,Err_msg$
750 PRINT Calibration FAILED, sensor on calibrator?
760 PRINT Esr
770 !
780 END IF
790 !
800 !
810 STOP
820 !
830 Spoll_intr:!
840 !
850 State=SPOLL(@Pwr_mtr)
860 PRINT SPOLL INTR:;State
870 Srq_flag=1
880 ENABLE INTR 7;2
890 !
900 RETURN
910 !
920 !
930 ! END OF SENSOR CAL
940 ! ###########################
950 !
960 END
A.2.4 Sensor Calibration Example 4
The following program prompts the user to connect a return loss bridge for calibration and
attach an open or short to the bridge test port. It then performs a power sweep calibration and
sends back a pass/fail flag upon completion.
410 ASSIGN @Pwr_mtr to 70101
420 CLEAR @Pwr_mtr
430 WAIT 1
440 PRINT Connect the 80503 Precision Return Loss Bridge to the input #2 power sensor cable.
445 PRINT Connect the open or short calibration connector to the bridge test port.
450 INPUT Then use an adapter to connect the bridge input port to the calibrator and hit ENTER.,Dmy
460 PRINT Calibrating Sensor 2...
470 OUTPUT @Pwr_mtr;CAL2?
480 ENTER @Pwr_mtr;Pass_cal
490 IF Pass_cal=0 THEN PRINT Calibration Passed
500 IF Pass_cal=1 THEN
510 PRINT Calibration FAILED, Bridge connected to calibrator?
560 ELSE
570 IF Pass_cal<>0 THEN PRINT Strange Response to CAL2?. Clear output Queue?
580 END IF
590 !