Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-83
errorqueue.count
This attribute gets the number of entries in the error queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Power cycle
Clearing error queue
Reading error messages
Not applicable
Not applicable
Usage
count
= errorqueue.count
count
The number of entries in the error queue
Example
count = errorqueue.count
print(count)
Returns the number of entries in the error
queue.
The output below indicates that there are
four entries in the error queue:
4.000
Also see
(on page 7-82)
errorqueue.next()
This function reads the oldest entry from the error queue and removes it from the queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
errorCode
,
message
,
severity
,
errorNode
= errorqueue.next()
errorCode
The error code number for the entry
message
The message that describes the error code
severity
The severity level (0, 10, 20, 30, or 40); see
Details
for more information
errorNode
The node number where the error originated
Details
Entries are stored in a first-in, first-out (FIFO) queue. This functions reads the oldest entry and
removes it from the queue.
Error codes and messages are listed in the Error summary list.
If there are no entries in the queue, code 0, "Queue is Empty" is returned.