7-76
Chapter 7
Programming Examples
Measurement Process Synchronization Examples
NOTE
The frequency span of this example program may need to be modified in order
to correspond to the frequency ranges of your analyzer.
• The reference channel is measured.
• The power meter calibration array is allocated.
• The power meter model is chosen.
• The status registers are cleared.
• The request-control summary bit is enabled.
• The pass-control mode is enabled.
• A calibration sweep is taken to begin the sequence.
• The status byte is read until control is requested.
• The computer passes control to the analyzer.
• The display is cleared and the analyzer is set to talker/listener mode.
• The GPIB interface status is read until control is returned.
• The program loops until all the points have been measured.
• The power meter calibration is enabled.
• The calibration data is output to the controller in FORM 4, ASCII format.
• The power meter-calibration factors are read into the controller.
• The analyzer is released from remote control and the program ends.
Running the Program
The analyzer is preset and the power meter-calibration routine begins. The analyzer
displays the message
“WAITING FOR GPIB CONTROL”
when it is requesting control. The
system controller display prints
“Passing Control”
when control is passed to the
analyzer. The controller displays
“Waiting for request”
while the analyzer has control
and is reading the power meter.
The interaction of the messages and the movement of the cursor allow observation of the
calibration process. Once the calibration is complete, the analyzer displays
“POWER METER
CAL IS COMPLETE”
and the system controller displays
“Finished with Power meter
Cal”
.
The power meter-calibration mode (with one sweep of correction data) is enabled and the
calibration is switched on. At the completion of the program, talker/listener mode is
restored, the event-status registers are cleared (to halt the status-byte interaction), the
power meter correction factors are displayed, the sweep is placed in continuous-sweep
mode, the analyzer is released from GPIB 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 ...