User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-176 3700S-901-01 Rev. C / July 2008
errorqueue functions and attributes
Use the functions and attributes in this group to read the entries in the error
queue.
errorqueue.clear()
Function
Clears all entries out of the error queue.
Usage
errorqueue.clear()
Remarks
This function removes all entries from the error queue.
Details
See Error and status messages (on page 17-1) and Status Model (on page 12-1).
Also see
errorqueue.count (on page 13-176), errorqueue.next() (on page 13-176)
errorqueue.count
Attribute
The number of entries in the error queue.
Usage
count = errorqueue.count
Remarks
This attribute can be read to determine the number of messages in the error queue.
This is a read-only attribute. Writing to this attribute will generate an error.
Details
See Error and status messages (on page 17-1) and Status Model (on page 12-1).
Also see
errorqueue.clear() (on page 13-176)
errorqueue.next() (on page 13-176)
Example
Reads number of entries in the error queue:
count = errorqueue.count
print(count) 4.000000e+00
The above output indicates that there are four entries in the event queue.
errorqueue.next()
Function
Reads an entry from the error 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.