User`s guide

Table Of Contents
84 Chapter 5
Making a Measurement
Waiting for the End of Measurement
Waiting for the End of Measurement
Using the Status Register
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,”.
Measurement status is reported by the operation status condition register (see Table B-3 on
page 518). An SRQ (service request) is useful when you create a program that uses the
information reported by this register to detect the end of measurement.
To detect the end of measurement via an SRQ, use one of the following commands:
*SRE on page 200
:STAT:OPER:ENAB on page 442
:STAT:OPER:PTR on page 444
:STAT:OPER:NTR on page 443
Follow these steps:
Step 1. Configure the E5061A/E5062A so that it generates an SRQ when the operation status
condition register's bit 4 (a bit that is set to 1 during measurement) is changed from 1 to 0.
Step 2. Trigger the instrument to start a measurement cycle.
Step 3. When an SRQ is generated, the program interrupts the measurement cycle.
Figure 5-2 SRQ generation sequence (at the end of measurement)