HP 53150A Series Programming Manual page 85

Microwave frequency counter
Table of Contents

Advertisement

From sheet 1 of 2
Do you
want to send a
Service Request (SRQ)
interrupt to the
computer?
YES
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)
Are you
planning to
monitor the OPC bit of
the Event Status
Register?
YES
Enable OPC bit of Event Status
Register:
*
OPC
Activate the Counter function that
you want to monitor. For example,
use the following:
INIT
This initiates the selected
measurement.
When an interrupt occurs, perform
a Serial poll.
Write a subroutine to determine
which bits in the Status Byte
Register are set.
Figure 3-14. Status Reporting Flowchart (2 of 2)
Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter for Status Reporting
Initiate a Counter function.
For example, use the following:
NO
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 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)
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.
Programming Guide
Write the necessary subroutines
to determine which events have
occured and what actions are
required.
NO
Is SRQ
interrupt enabled?
YES
3-45

Advertisement

Table of Contents
loading

This manual is also suitable for:

53152a series53151a series

Table of Contents