Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter for Status Reporting
Programming Guide
3-43
3
Using the Operation Status Register to Alert the
Computer When Measuring has
Completed—Example 3
The following command grouping illustrates how to use the Operation
Status register and the Status Byte register to alert the computer when
measuring has completed. This is useful if the Counter is making a long
measurement. When the measurement is complete, the Counter can alert
the computer.
The first line tells the Counter to watch for a negative transition from true
(measuring) to false (non-measuring) of bit 4. This negative transition
indicates that the Counter has completed a measurement. The next line
tells the Counter to summarize the detected event (bit 4 of the Operation
Status Register) in the Status Byte Register. The command *SRE 128 tells
the Counter to assert SRQ when the summary bit for the Operation
Status register is set to 1. A serial poll will return 192 when a
measurement has completed.
Operation Status Register
:STAT:OPER:PTR 0; NTR 16 Detect transition from measuring to
non-measuring.
:STAT:OPER:ENABLE 16
Enable to detect measuring.
*SRE 128
Assert SRQ on Operation Summary bit.
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...