
68 Chapter 3
O:\Manuals\E6380A_Progguid\Book\Guidelin.fm
HP-IB Command Guidelines
Guidelines for Operation
Example 3-6 Example
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:
Example 3-7 Example
!Query the AFGen1 To field
OUTPUT 714;"AFG1:DEST?"
!Enter queried value into a string variable.
ENTER 714;Afg1_to$
Specifying Units-of-Measure for Settings and
Measurement Results
Numeric settings and measurement results in the Test Set can be
displayed using one or more units-of-measure (V, mV,
µ
V, H z, k H z ,
MHz…). When operating the Test Set manually, the units-of-measure
can be easily changed to display measurement results and field settings
in the most convenient format. HP-IB operation is similar to manual
operation in that the units-of-measure used to display numeric data can
be programmatically changed to the most convenient form.
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.
There are three sets of units-of-measure used in the Test Set: Display
Units,
HP-IB Units, and Attribute Units. Writing correct HP-IB programs
requires an understanding of how the Test Set deals with these
different sets of units-of-measure.
Comentários a estes Manuais