![HP 8920B Programmer'S Manual Download Page 66](http://html.mh-extra.com/html/hp/8920b/8920b_programmers-manual_166189066.webp)
66
Chapter 3, HP-IB Command Guidelines
Guidelines for Operation
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.
RFAN:FREQ 850MHZ;:AFAN:INP ’FM DEMOD’
Using Question Marks to Query Setting or Measurement Fields
The question mark (?) is used to query (read-back) an instrument setting or
measurement value. To generate the query form of a command, place the question
mark immediately after the command. Queried information must be read into the
proper variable type within the program context before it can be displayed,
printed, or used as a numeric value in the program.
Queried information is returned in the same format used to set the value: queried
numeric fields return numeric data; quoted string fields return quoted string
information.
For example, the following BASIC language program statements query the
current setting of the
AFGen 1 To
field:
!Query the AFGen1 To field
OUTPUT 714;"AFG1:DEST?"
!Enter queried value into a string variable.
ENTER 714;Afg1_to$
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...