Programming
1159
Using Error Queue
An error queue holds the number for the error and the error message.
Reading the error queue allows the user to verify the error that has
occurred. To retrieve the content of an error queue, use the following
command:
:SYST:ERR?
The error queue can be used in the following ways:
1. It is used as a branch for error handling. When an error queue is
retrieved, it returns 0 as the error number and "No error" as the
error message if no error is detected. This can be used for detecting
of an error and for branching the flow of a program. This is also
useful when you wish to handle a specific error(s). Note that this
method will not allow the user to perform any processing during the
occurrence of an error.
2. When an error is detected using SRQ, the error queue is used to
examine the error. Refer to the sample program in this section.
Sample Program
See Error Detection (SRQ).