Clearing The Enable Registers; The Status Byte Group's Enable Register; Reading Status Groups Directly - HP E1419A User Manual

Measurement and control module
Table of Contents

Advertisement

Clearing the Enable
Registers
The Status Byte
Group's Enable
Register
Reading Status
Groups Directly
Chapter 3
Bit 4 (MAV)
There is a message available in the Output Queue.
You should execute the appropriate query command.
bit value 16
10
Bit 5 (ESB)
Read the Standard Event Group's Event Register
using the *ESR? command. This will return bit
bit value 32
10
values for events which have occurred in this group.
After reading, this status register is cleared.
Note that bits 2 through 5 in this group indicate error
conditions. If any of these bits are set, error messages
will be found in the Error Queue. Use the
SYST:ERR? command to read these.
Bit 7 (OPR)
Read the Operation Status Group's Event Register
using the STAT:OPER:EVENT? command. This will
bit value 128
10
return bit values for events which have occurred in
this group. After reading, the Event Register is
cleared.
To clear the Enable Registers execute:
STAT:PRESET
*ESE 0
*SRE 0
The Enable Register for the Status Byte Group has a special purpose. Notice
in Figure 3-12 how the Status Byte Summary bit wraps back around to the
Status Byte. The summary bit sets the RQS (request service) bit in the
Status Byte. Using this Summary bit (and those from the other status
groups) you can poll the Status Byte and check the RQS bit to determine if
there are any status conditions which need attention. In this way the RQS bit
is like the HP-IB's SRQ (Service Request) line. The difference is that while
executing an HP-IB serial poll (SPOLL) releases the SRQ line, executing
the *STB? command does not clear the RQS bit in the Status Byte. You
must read the Event Register of the group who's summary bit is causing the
RQS.
You may want to directly poll status groups for instrument status rather than
poll the Status Byte for summary information.
for Operation Status and
Questionable Data Groups
for the Standard Event Group
for the Status Byte Group
Programming the HP E1419A 95

Advertisement

Table of Contents
loading

Table of Contents