EasyManua.ls Logo

HP 8920B - Page 37

HP 8920B
682 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
37
Chapter 1, 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 Chapter 4, "HP-IB Commands".
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 Chapter 4, "HP-
IB Commands" for proper syntax).
The following example makes several instrument setting changes:
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:OUTPDUPL’"!Set the Output Port to Duplex.
OUTPUT 714;"DISP AFAN"!Display the AF Analyzer screen.
OUTPUT 714;"AFAN:INPFM DEMOD’"!Set the AF Anl In to FM Demod.
To Read a Field’s Setting over HP-IB37
1. Use the DISPlay command to access the screen containing the field whose setting is to
be read.
2. Use the Query form of the syntax for that field to place the setting value into the Test
Set’s output buffer.
3. Enter the value into the correct variable type within the program context (refer to Chap-
ter 4, "HP-IB Commands", for proper variable type).

Table of Contents

Other manuals for HP 8920B

Related product manuals