
Appendix D: SCPI Status and Event Registers
Appendix D: SCPI Status and Event Registers
The WSA's SCPI interface has a status and event reporting system that enables the user
to handle device events. The interface conforms to IEEE Std 488.2-1987 and SCPI
1999.0. This section discusses these status registers, status register enable masks,
event queues and event handling.
Status Byte Register (SBR)
The SBR is used to determine the specific nature of the event or condition. It is read by
issuing a
command. The contents of the SBR are clear by issuing either a
Bits in the SBR will be set only when the corresponding bits in the Service Request
Enable Register are set.
Bit
Name
Description
0
not used
This bit is not used and is always 0.
1
not used
This bit is not used and is always 0.
2
Error / Event Available
(EAV)
This bit is set if there are any unread error or event in the
System Error queue. It is read using the SYSTem:ERRor?
query.
3
Questionable Register
Summary
This bit is not used and is always 0.
4
Message Available
(MAV)
This bit is set if there is any unread data in the Output queue.
5
Standard Event Status
Bit (ESB)
This bit is set if there is any unread or non-cleared data in the
Standard Event Status register.
6
Request Service
Summary of the Request Service register.
7
Operation Register
Summary
Summary of the Operation Status register
Standard Event Status Register (ESR)
The ESR is used to determine the nature of the status and error conditions. It is read by
issuing a
command. The contents of the ESR are clear by issuing either a
Bits in the ESR will be set only when the corresponding bits in the Standard Events
Status Enable Register are set.
Bit
Name
Description
0
Operation Complete
(OPC)
Set to indicate that all pending operations are complete and
the WSA5000 is ready to accept another command, or that
query results are available.
1
Request Control (RQC)
This bit is not used and is always 0.
2
Query Error (QYE)
Set to indicate that a query has been made for which no
88
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide