SCPI also defines an IEEE 488.2 queue for status. The queue provides a human
readable record of instrument events. The application programmer may individually
enable events into the queue. :STATus:PRESET enables errors and disables all other
events. If the summary of the queue is reported, it shall be reported in bit 2 of the status
byte register. A subset of error/event numbers is defined by SCPI.
:STATus:OPERation[:EVENt]?
This command queries the standard Operation Status Register (OSR) for any event. The
query returns the decimal sum of the bits set in the OSR. The decimal sum is the binary
equivalent of the 16-bit mask. The last bit is unused. Any specific bit in the OSR will only
appear set if and only if its event has occurred and the corresponding bit in the OSE is
also enabled (refer to
Appendix D: SCPI Status and Event Registers
).
Caution:
This query clears all bits in the register to 0.
See
Figure 13
for the Operation Status register bits mapping.
Syntax
:STATus:OPERation[:EVENt]?
Parameter
None
Response
<integer>
Output Values
0
– 32767 (2
15
-1)
*RST State
None
Example
:STAT:OPER?
:STATus:OPERation:CONDition?
This command queries the standard Operation Condition Register (OCR) for any
questionable event. The query returns the decimal sum of the bits set in the OCR. The
decimal sum is the binary equivalent of the 16-bit mask. The last bit is unused. Any
specific bit in the OCR will only appear set if and only if its event has occurred and the
corresponding bit in the OSE is also enabled (see
:STATus:OPERation:ENABle
section).
The content of the OCR remains unchanged after it is read.
The data in this register is continuously updated to reflect the most current conditions.
See
Figure 13
for the Operation Condition register bits mapping.
Syntax
:STATus:OPERation:CONDition?
Parameter
None
Response
<integer>
Output Values
0
– 32767 (2
15
-1)
*RST State
None
Example
:STAT:OPER:COND?
:STATus:OPERation:ENABle
This command enables or queries bits in the Operation Enable register (OER). The
decimal integer value entered is the binary equivalent of the desired 16-bit mask to be