Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter for Status Reporting
Programming Guide
3-45
3
Figure 3-14. Status Reporting Flowchart (2 of 2)
Use the following:
*
SRE 188
This enables any of the available
bits to generate the RQS/MSS
bit to set bit 6 in the Status Byte
Register and send an SRQ inter-
rupt to the Computer. (See Note 1)
NO
YES
YES
When an interrupt occurs, perform
a Serial poll.
Is SRQ
interrupt enabled?
From sheet 1 of 2
Do you
want to send a
Service Request (SRQ)
interrupt to the
computer?
Activate the Counter function that
you want to monitor. For example,
use the following:
INIT
This initiates the selected
measurement.
Write a subroutine to determine
which bits in the Status Byte
Register are set.
Initiate a Counter function.
For example, use the following:
INIT
This initiates the selected measurement.
To read the Status Byte Register, use the
following:
*
STB?
enter A
print A
This reads the decimal value of the Status
Byte Register. (You can also use the serial
poll command to read this value.)
If bit 3 (QSB) is set, use the following:
:STAT:QUES:EVENt?
This returns the decimal value of the event
register. It also clears the register so that
subsequent events can be monitored.
If bit 5 (ESB) is set, use the following:
*
ESR?
This returns the decimal value of the event
register. It also clears the register so that
subsequent events can be monitored.
If bit 7 (OSB) is set, use the following:
:STAT:OPER:EVEN?
This returns the decimal value of the event
register. It also clears the register so that
subsequent events can be monitored.
Write the necessary subroutines
to determine which events have
occured and what actions are
required.
NO
Are you
planning to
monitor the OPC bit of
the Event Status
Register?
Enable OPC bit of Event Status
Register:
*
OPC
YES
If bit 4 (MAV) is set, read the message in
the Output Queue. How you do this de-
pends on what data is expected.
NO
(See Note 2)
Содержание 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 ...