User`s guide

Table Of Contents
166 Chapter 11
Working with Automatic Test Systems
Detecting Occurrence of an Error
Detecting Occurrence of an Error
Using the status reporting system
The status of the E5061A/E5062A can be detected through the status registers.This section
describes how to detect the end of measurement using the status registers. For the complete
description of the status report mechanism, including the specifications of each bit, see
Appendix B, “Status Reporting System,”.
Occurrence of an error will be present 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 occurrence of an error.
To detect the end of sweep via an SRQ, use one of the following commands:
*SRE on page 200
*ESE on page 197
Follow these steps:
Step 1. Set the E5061A/E5062A so that it generates an SRQ when any of the error occurrence bit
is set to 1 in the standard event status register.
Step 2. When an SRQ is generated, the program interrupts the measurement cycle.
Figure 11-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 been occurred.To retrieve the content of
error queue, use the following command:
:SYST:ERR? on page 476