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.
Содержание 53150A Series
Страница 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Страница 2: ......
Страница 10: ...Contents x Programming Guide ...
Страница 11: ...1 Before You Start ...
Страница 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Страница 21: ...2 Command Summary A Quick Reference ...
Страница 41: ...3 Programming Your Counter for Remote Operation ...
Страница 100: ...Chapter 3 Programming Your Counter for Remote Operation Programming Examples 3 60 Programming Guide 3 ...
Страница 101: ...4 Command Reference A Dictionary ...
Страница 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Страница 163: ...5 Errors ...
Страница 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Страница 184: ......
Страница 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...