Reading the
Status Byte
To check if any enabled events have occurred in the Status system, you first
read the Status byte using the
*STB?
command. If the Status byte is all
zeros, there is no summary information being sent from any of the Status
groups. If the Status byte is other than zero, one or more enabled events
have occurred. You interpret the Status byte bit values and take further
action as follows:
Bit 3 (QUE)
bit value 8
10
Read the Questionable Data Group’s Event Register
using the
STATus:QUEStionable:EVENt?
command.
This returns bit values for events which have occurred in
this group. After reading, the Event Register is cleared.
Note that bits in this group indicate error conditions. If
bit 8, 9 or 10 is set, error messages will be found in the
Error Queue. If bit 7 is set, error messages will be in the
error queue following the next
*RST
or cycling of power.
Use the
SYSTem:ERRor?
command to read the error(s).
Bit 4 (MAV)
bit value 16
10
There is a message available in the Output Queue. You
should execute the appropriate query command.
Bit 5 (ESB)
bit value 32
10
Read the Standard Event Group’s Event Register using
the
*ESR?
command. This will return bit 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
SYSTem:ERRor?
command to read these.
Bit 7 (OPR)
bit value 128
10
Read the Operation Status Group’s Event Register using
the
STATus:OPERation:EVENt?
command. This will
return bit values for events which have occurred in this
group. After reading, the Event Register is cleared.
Clearing the
Enable Registers
To clear the Enable Registers execute:
STAT:PRES
For Operation Status and
Questionable Data Groups.
*ESE 0
For the Standard Event Group.
*SRE 0
For the Status Byte Group.
Chapter 4
Understanding the HP E1313/E1413 127
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com