7-8 Chapter7
Programming Examples
Programming Examples
Program Information
The following information is provided for every HP BASIC example program included on
the “Programming Examples” CD-ROM:
• A program description
• An outline of the program's processing sequence
• A step-by-step instrument-command-level tutorial explanation of the program
including:
❏ The command mnemonic and command name for the GPIB instrument command
used in the program.
❏ An explanation of the operations and affects of the GPIB instrument commands used
in the program.
Analyzer Features Helpful in Developing Programming Routines
Analyzer-Debug Mode
The analyzer-debug mode aids you in developing programming routines. The analyzer
displays the commands being received. If a syntax error occurs, the analyzer displays the
last buffer and points to the first character in the command line that it could not
understand.
You can enable this mode from the front panel by pressing . The
debug mode remains activated until you preset the analyzer or deactivate the mode. You
can also enable this mode over the GPIB using the DEBUON; command and disable the
debug mode using the DEBUOFF; command.
User-Controllable Sweep
There are three important advantages to using the single-sweep mode:
1. The user can initiate the sweep.
2. The user can determine when the sweep has completed.
3. The user can be confident that the trace data has be derived from a valid sweep.
Execute the command string OPC?;SING; to place the analyzer in single-sweep mode and
trigger a sweep. Once the sweep is complete, the analyzer returns an ASCII character one
(1) to indicate the completion of the sweep.
Table 7-8 Mixer Measurement Example Programs
Example
Number
Description Refer to File Name(s) on
CD-ROM
8A Comparison of Two Mixers—Group Delay, Amplitude
or Phase
1
1. For use with 8753ET/ES analyzers, and with 8719/20/22ES analyzers that have Option 089 installed.
page 7-122 EXAMP8A
Local