
Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-123
errorqueue functions and attributes
Use the functions and attributes in this group to read the entries in the error/event queue.
errorqueue.clear
Function
Clears all entries out of the error/event queue.
Usage
errorqueue.clear()
Remarks
This function removes all entries from the error/event queue.
Details
See
Error and status messages
(see "Error codes" on page 13-1) and
Status Model
(on page 8-1).
Also see
errorqueue.count
(on page 9-123),
errorqueue.next
(on page 9-123)
errorqueue.count
Attribute
The number of entries in the error/event queue.
Usage
count = errorqueue.count
Remarks
This attribute can be read to determine the number of messages in the error/event
queue. This is a read-only attribute. Writing to this attribute will generate an error.
Details
See
Error and status messages
(see "Error codes" on page 13-1) and
Status Model
(on page 8-1).
Also see
errorqueue.clear
(on page 9-123),
errorqueue.next
(on page 9-123)
Example
Reads number of entries in the error/event queue:
count = errorqueue.count
print(count)
4.00
The above output indicates that there are four entries in the event/error queue.
errorqueue.next
Function
Reads an entry from the error/event queue.
Usage
errorcode, message, severity, node =
errorqueue.next()
errorcode
: Returns the error code number for the entry.
message
: Returns the message that describes the entry.
severity
: Returns the severity level (0, 10, 20, 30 or 40).
node
: Returns the node number where the error originated.