7-26
Chapter 7
Programming Examples
Measurement Calibration Examples
430 !
440 OUTPUT @Nwa;”MENUOFF;” ! Turn softkey menu off.
450 !
460 OUTPUT @Nwa;”CALIRESP;” ! Response CAL initiated
470 !
480 CALL Waitforkey(“CONNECT THRU BETWEEN PORTS”)
490 IF Kit=2 THEN
500 OUTPUT @Nwa;”OPC?;STANE;” ! Select the fifth standard, E
510 ELSE
520 OUTPUT @Nwa;”OPC?;STANC;” ! Select the third standard, C
530 END IF
540 ENTER @Nwa;Reply ! Read in the 1 returned
550 !
560 DISP “COMPUTING CALIBRATION COEFFICIENTS”
570 !
580 OUTPUT @Nwa;”OPC?;RESPDONE;” ! Finished with the CAL cycle
590 ENTER @Nwa;Reply ! Read in the 1 returned
600 !
610 DISP “RESPONSE CAL COMPLETED. CONNECT TEST DEVICE.”
620 OUTPUT @Nwa;”MENUON;” ! Turn on the softkey menu
630 !
640 OUTPUT @Nwa;”OPC?;WAIT;” ! Wait for the analyzer to finish
650 ENTER @Nwa;Reply ! Read the 1 when complete
660 LOCAL @Nwa ! Release HP-IB control
670 !
680 END
690 !
700 ! **************************** Subroutines ******************************
710 !
720 Waitforkey: ! Prompt routine to read a keypress on the controller
730 SUB Waitforkey(Lab$)
740 ! Position and display text on the analyzer display
750 OUTPUT 717;”PG;PU;PA390,3700;PD;LB”;Lab$;”, PRESS ENTER WHEN READY;”&CHR$(3)
760 !
770 DISP Lab$&” Press ENTER when ready”;! Display prompt on console
780 INPUT A$ ! Read ENTER key press
790 !
800 OUTPUT 717;”PG;” ! Clear analyzer display
810 SUBEND
Example 2B: 1-Port Calibration
The following is an outline of the program's processing sequence:
• An I/O path is assigned for the analyzer.
• The system is initialized.
• The appropriate calibration kit is selected.
• The softkey menu is deactivated.
• The 1-port calibration sequence is run.
• The 1-port calibration data is saved.
• The softkey menu is activated.
• The analyzer is released from remote control and the program ends.
Summary of Contents for 8719ES
Page 15: ...1 1 1 Alphabetical Command Reference ...
Page 293: ...2 1 2 Introduction to Instrument Control ...
Page 310: ...3 1 3 GPIB Programming ...
Page 334: ...4 1 4 Reading Analyzer Data ...
Page 343: ...5 1 5 Data Processing Chain ...
Page 350: ...6 1 6 Error Reporting ...
Page 364: ...7 1 7 Programming Examples ...
Page 502: ...A 1 A Preset Conditions ...
Page 517: ...B 1 B Command Listings ...