User`s manual
Chapter 3 67
HP-IB Command Guidelines
Guidelines for Operation
Example 3-4 Example
DISP AFAN
AFAN:INP:GAIN ’40 dB’
Using the Semicolon to Output Multiple Commands
Multiple commands can be output from one program line by separating
the commands with a semicolon (;). The semicolon tells the Test Set’s
HP-IB command parser to back up one level of hierarchy and accept the
next command at the same level as the previous command.
For example, on one command line, it is possible to
1. access the AF ANALYZER screen,
2. set the AF Analyzer’s Input to AM Demod
3. set Filter 1 to 300 Hz HPF
4. set Filter 2 to 3kHz LPF
Example 3-5 Example
DISP AFAN;AFAN:INP ’AM DEMOD’;FILT1 ’300Hz HPF’;FILT2 ’3kHz
LPF’
The semicolon after the “DISP AFAN” command tells the Test Set’s
HP-IB command parser that the next command is at the same level in
the command hierarchy as the display command. Similarly, the
semicolon after the INP 'AM DEMOD' command tells the command
parser that the next command (FILT1 '300Hz HPF') is at the same
command level as the INP 'AM DEMOD' command.
Using the Semicolon and Colon to Output Multiple Commands
A semicolon followed by a colon (;:) tells the HP-IB command parser
that the next command is at the top level of the command hierarchy.
This allows commands from different instruments to be output on one
command line. The following example sets the RF Analyzer’s tune
frequency to 850 MHz, and then sets the AF Analyzer’s input to FM
Demod.