COMMAND REFERENCE 4 - 101
SYSTem:ERRor?
Syntax:
SYSTem:ERRor?
Response:
<error_number>,"<error_description>"
<error_number> A predefined number. If 0 (zero) is returned,
there are no errors in the queue.
<error_description> A short description of the error. When there
are no errors in the queue, the description is
"No error".
Description:
The SYSTem:ERRor? query reports the next event from the error/event queue
and removes this event from the queue. The error queue is a "First-In First-Out"
(FIFO) queue. Therefore, the error query returns the oldest error. Once an error
is read, it is removed from the queue and the next error message is made
available. SYSTem:ERRor? is the alias of the STATus:QUEue? query. If the
queue is empty, the instrument responds with:
0,"No error"
The error/event queue has space for 20 messages. If there are more messages
than the queue can hold, it will overflow. The oldest messages stay in the queue,
but the most recent message is discarded and the latest message is written in its
place. When the event/error queue overflows, the last position in the queue is set to:
-350,"Queue overflow"
The error/event queue is cleared:
•
After power on.
•
When
*
CLS is received.
•
When the last error in the queue is read.
Example:
Send
→ SYSTem:ERRor?
Read
← -222,"Data out of range"
The error number is -222 and the meaning is "Data out of range".