17-94 SCPI Command Reference
Error queue
NOTE See Section 14 for details on the error queue.
[:NEXT]?
:SYSTem:ERRor[:NEXT]? Read oldest error (code and message)
Description As error and status messages occur, they are placed in the Error Queue. The
Error Queue is a first-in, first-out (FIFO) register that can hold up to 10 mes-
sages. After sending this command and addressing the SourceMeter to talk,
the oldest message is sent to the computer and is then removed from the
queue.
NOTE The :STATus:Queue? command performs the same function as
:SYSTem:ERRor[:NEXT]?. See “STATus subsystem.”
:ALL?
:SYSTem:ERRor:ALL? Read all errors (codes and messages)
Description This query command is similar to the [:NEXT]? command except that all
messages in the Error Queue are sent to the computer when the SourceMe-
ter is addressed to talk. All messages are removed from the queue.
:COUNt?
:SYSTem:ERRor:COUNt? Return the number of errors
Description After sending this command and addressing the SourceMeter to talk, a deci-
mal number will be sent to the computer. That is the number of messages in
the Error Queue.
:CODE[:NEXT]?
:SYSTem:ERRor:CODE[:NEXT]? Read oldest error (code only)
Description This command is identical to the [:NEXT]? command, except only the code
is returned. The message itself is not returned. The error is cleared from the
queue.
:CODE:ALL?
SYSTem:ERRor:CODE:ALL? Read all errors (codes only)
Description This query command is identical to the :ALL? command, except only the
codes are returned. The actual messages are not returned. All errors are
cleared from the queue.
:CLEar
:SYSTem:CLEar Clear Error Queue
Description This action command is used to clear the Error Queue of messages.