SYSTem:ERRor?
Returned Data
Comments
Reset Condition
Related
Commands
Example
Chapter 3
The SYSTem subsystem allows you to query error conditions and the SCPI
compliance version.
Syntax:
Description
:SYSTem
:ERRor?
Returns error number and message from error queue
:VERSion?
Returns SCPI Version compliance year
SYStem:ERRor? returns the error number and corresponding error message from the
error queue.
Type Range
int16
-32768 through 32767
string
•
The response format is: error_number, "error description string".
•
Error Numbers/Message in the Error Queue: Each error generated by this
instrument driver stores an error number and corresponding error message in
the error queue. The error message can be up to 255 characters long.
•
Clearing the Error Queue: An error number/message is removed from the
queue each time the SYSTem:ERRor? command is sent. The errors are cleared
on a first-in, first-out basis. When all errors have been read and the queue is
empty, SYSTem:ERRor? returns 0, "No error". To clear all error
number/messages in the queue, execute the *CLS command.
•
Maximum Error Numbers/Message in the Error Queue: The queue holds a
maximum of 30 error numbers/messages. If the queue overflows, the last error
number/message in the queue is replaced by -350, "Too many errors". The
least recent error number/message remains in the queue and the most recent
are discarded.
*RST does not affect the error queue, use *CLS to clear the error queue.
*CLS
SYST:ERR?
SYSTem Subsystem
Default Description
none
Error number
Error message
Query the error queue.
SCPI Command Reference
41