3-7
Troubleshooting
Querying the Error Queue
Querying the Error Queue
The queue query message is a request for the next entry from the instrument’s
error queue. This queue contains an integer that can range from -32768 to 32767.
Negative error numbers are reserved by the SCPI standard and are defined in this
section. Positive error numbers are instrument-dependent. An error value of zero
indicates that no error or event has occurred.
The signal generator responds to the
SYSTem:ERRor? (or STATus:QUEue?)
query using the following form:
<error number>, <error description>
The <error number> is a unique error descriptor. Certain standard error numbers
are described in this section. The <error description> is a short description of the
error, (optionally) followed by additional information regarding the error. Short
descriptions of the standard error numbers are described in this section. The
information that follows the error message may contain corrective actions that
should be followed to correct the error condition.
The <device-dependent info> section of the response may contain information
which will allow you to determine the exact error and context. For example:
-131, Invalid suffix;FREQuency:CENT 2.0E+5 dBmV
The maximum string length of <error description> plus <device-dependent info>
is 255 characters. The <error description> will be sent exactly as indicated in this
document, including case.
If there has been no error, that is, if the queue is empty, the signal generator will
respond with:
0, No error
If there has been more than one error, the instrument will respond with the first
one in its queue. Subsequent responses to
SYSTem:ERRor? will continue with
the queue until it is empty.