![HP 8920B Programmer'S Manual Download Page 56](http://html.mh-extra.com/html/hp/8920b/8920b_programmers-manual_166189056.webp)
56
Chapter 2, Methods For Reading Measurement Results
HP BASIC ‘MAV’ Example Program
HP BASIC ‘MAV’ Example Program
The following HP RMB example program demonstrates a technique which can be
used in situations where a 32.767 measurement result timeout value is not
adequate.
Measurement result timeout value is defined to mean the amount of time the
control program is willing to wait for the Test Set to return a valid measurement
result to the control program.
The technique uses the MAV (Message Available) bit in the Test Set’s HP-IB
Status Byte to determine when there is data in the Output Queue. A polling loop is
used to query the Status byte. The timeout duration for returning the measurement
result is handled by the polling loop. An HP-IB interface activity timeout is also
set up to handle time-outs resulting from problems with the HP-IB interface.
Lines 10 thru 230 in this example set up a measurement situation to demonstrate
the use of the recommended technique. The recommended technique is exampled
in the Measure Function.
NOTE:
Lines 50 and 60 should be included in the beginning of all control program. These lines are
required to ensure that the Test Set is properly reset. This covers the case where the program
was previously run and was stopped with the Test Set in an error condition.
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 ...