![HP 8920B Programmer'S Manual Download Page 72](http://html.mh-extra.com/html/hp/8920b/8920b_programmers-manual_166189072.webp)
72
Chapter 3, HP-IB Command Guidelines
Guidelines for Operation
Reading-Back HP-IB Units.
Use the UNITs? command to read back the current
HP-IB Units setting for a measurement or instrument setup field. For example, the
following BASIC language program statements read back the current HP-IB Units
setting for the
TX Power
measurement:
!Query the current HP-IB Units setting for TX Power.
OUTPUT 714;"MEAS:RFR:POW:UNIT?"
!Enter the returned value into a string variable.
ENTER 714;A$
Guidelines for HP-IB Units
•
When setting the value of a numeric field (such as
AFGen1 Freq
), any non–HP-IB
Unit unit-of-measure must be specified in the command string, otherwise the current
HP-IB Unit is assumed by the Test Set.
For example, if the command RFG:FREQ 900 is sent through HP-IB, the Test Set will
interpret the data as 900 Hz, since HZ is the HP-IB Unit for frequency. This would
result in an
Input value out of range
error. Sending the command
RFG:FREQ 900 MHZ would set the value to 900 MHz.
•
When querying measurements or settings through HP-IB, the Test Set always returns
numeric values in HP-IB units, regardless of the current Display Unit setting. Numeric
values are expressed in scientific notation.
For example, if the
TX Frequency
measurement is displayed as 150.000000 MHz
on the Test Set, the value returned through HP-IB is 1.5008 (1.5
×
10
8
). Con-
verting the returned value to a format other than scientific notation must be done pro-
grammatically.
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 ...