
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-236
3700AS-901-01 Rev. D/June 2018
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 function reads the oldest entry and
removes it from the queue.
Error codes and messages are listed in the
(on page 12-9).
If there are no entries in the queue, code 0, "Queue is Empty" is returned.
Returned severity levels are described in the following table.
Severity level descriptions
Number
Level
Description
0
Informational
Indicates that there are no entries in the queue.
10
Informational
Indicates a status message or minor error.
20
Recoverable
Indicates possible invalid user input; operation continues but action
should be taken to correct the error.
30
Serious
Indicates a serious error that may require technical assistance, such as
corrupted data.
40
Fatal
Instrument is not operational.
In an expanded system, each TSP-Link enabled instrument is assigned a node number.
The variable
errorNode
stores the node number where the error originated.
Example
errorcode, message = errorqueue.next()
print(errorcode, message)
Reads the oldest entry in the error queue. The
output below indicates that the queue is empty.
Output:
0.00 Queue Is Empty
Also see
Error Available Bit (Error or Event queue)
(on page C-8)
(on page 11-235)
(on page 11-235)
(on page 12-9)