User`s manual

40 Chapter 1
O:\Manuals\E6380A_Progguid\Book\Usehpib.fm
Using HP-IB
Getting Started
To Read a Field’s Setting over HP-IB
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 Sets output buffer.
3. Enter the value into the correct variable type within the program
context (refer to the HP-IB Syntax Reference Guide, for proper
variable type).
The following example reads several fields.
Example 1-8 Example
OUTPUT 714;"DISP AFAN"!Display the AF Analyzer screen.
OUTPUT 714;"AFAN:INP?"!Query the AF Anl In field
ENTER 714;Af_input$ !Enter returned value into a string ariable.
OUTPUT 714;"DISP RFG"!Display the RF Generator screen
OUTPUT 714;"RFG:FREQ?"!Query the RF Gen Frequency field.
ENTER 714;Freq !Enter the returned value into a numeric variable
NOTE
When querying measurements or settings through HP-IB, the Test Set
always returns numeric values in HP-IB Units or Attribute Units,
regardless of the current Display Units setting. Refer to “HP-IB Units
(UNITs)” on page 72 and Attribute Units (AUNits)” on page 75 for
further information.