User`s manual

Chapter 1 39
Using HP-IB
Getting Started
Basic Programming Examples
The following simple examples illustrate the basic approach to
controlling the Test Set through the HP-IB. The punctuation and
command syntax used for these examples is given in the HP-IB Syntax
Reference Guide.
The bus address 714 used in the following BASIC language examples
assumes an HP-IB interface at select code 7, and a Test Set HP-IB
address of 14. All examples assume an external controller is being used.
To Change a Field’s Setting over HP-IB
1. Use the DISPlay command to access the screen containing the field
whose setting is to be changed.
2. Make the desired setting using the proper command syntax (refer to
the HP-IB Syntax Reference Guide for proper syntax).
The following example makes several instrument setting changes:
Example 1-7 Example
OUTPUT 714;"DISP RFG" !Display the RF Generator screen.
OUTPUT 714;"RFG:FREQ 850 MHZ" !Set the RF Gen Freq to 850 MHz.
OUTPUT 714;"RFG:OUTP ’DUPL’"!Set the Output Port to Duplex.
OUTPUT 714;"DISP AFAN"!Display the AF Analyzer screen.
OUTPUT 714;"AFAN:INP ’FM DEMOD’"!Set the AF Anl In to FM Demod.