
Appendix C: Status model
Series 3700A System Switch/Multimeter Reference Manual
C-8
3700AS-901-01 Rev. D/June 2018
Standard event commands
Command
Description
*ESR?
or
print(status.standard.event)
Read Standard Event Status Register.
*ESE <mask>
or
status.standard.enable = <mask>
Program the Event Status Enable Register:
<mask>
= 0 to 255
*ESE?
or
print(status.standard.enable)
Read Event Status Enable Register.
Error available bit (Error or Event queue)
The summary bit of the error or event queue provides enabled summary information to Bit B2 (EAV)
of the status byte.
The Error Available Bit (EAV) is set when a message defining an error (or status) is placed in the
error or event queue. The error or event queue is one of the two System Switch/Multimeter queues
associated with the status model. The other queue sets the Message available bit (output queue).
Both queues are first-in, first-out (FIFO) queues. The error queue holds error and status messages.
The status model shows how these queues are structured with regard to the other registers.
The following sequence outlines typical events associated with this queue:
1. When an error or status event occurs, a message defining the error (or status) is placed in the
error queue.
2. The Error Available (EAV) bit in the Status Byte Register is set.
3. Through programming, the error (or status) message is read. This clears the error (or status) from
the error queue. The error queue is considered cleared when it is empty.
4. An empty error queue clears the EAV bit in the Status Byte Register.
The commands to control the error queue are listed below. When you read a single message in the
error queue, the oldest message is read and then removed from the queue. On power-up, the error
queue is initially empty. If there are problems detected during power-on, entries will be placed in the
queue. If no problems are detected, the error number
0
and “
No Error
” will be returned.
Error queue command
Description
errorqueue.clear()
Clear error queue of all errors.
errorqueue.count
Number of messages in the error/event
queue.
errorqueue.next()
Request error message.
Messages in the error queue include a code number, message text, severity, and TSP-Link node
number. For example, the following commands request the next complete error information from the
error queue and display the code, message, severity, and node of the next error:
errorcode, message, severity, errornode = errorqueue.next()
print(errorcode, message, severity, errornode)
The error messages, as well as error numbers, are listed in the
(on page 12-9).