Working with Automatic Test Systems
Detecting Occurrence of an Error
Detecting Occurrence of an Error
Using the status reporting system
The status of the E5052A can be monitored through the status registers. This section
describes how to detect an error using the status registers. For a complete description of the
status report mechanism, including the specifications of each bit, see Appendix B, "Status
Reporting System".
The occurrence of an error will be shown in the standard event status register. An SRQ
(service request) is useful when you create a program that uses the information reported by
this register to detect the occurrence of errors.
To detect the an error via an SRQ, use one of the following commands:
•
•
Follow these steps:
Step 1. Set the E5052A so that it generates an SRQ when any of the error occurrence bits is set to 1
in the standard event status register.
Step 2. When an SRQ is generated, the program interrupts the measurement cycle.
Figure 6-1
SRQ Generation Sequence (when an error occurs)
Using the 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 the
error queue, use the following command:
•
86
*SRE on page 275
*ESE on page 273
:SYSTem:ERRor[:NEXT] on page 368
6