Other topics about Making Measurement
The status of the E5072A can be detected through the status registers. This section explains how to detect the end of measurement by using the status registers.
Measurement status is reported by the operation status condition register. An SRQ (service request) is useful when creating 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
:STAT:OPER:ENAB
:STAT:OPER:PTR
:STAT:OPER:NTR
Follow these steps to utilize an SRQ:
Configure the E5072A 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.
Trigger the instrument to start a measurement cycle.
When an SRQ is generated, the program interrupts the measurement cycle.
SRQ generation sequence (at end of measurement)
See the Waiting for Trigger (SRQ).
When you trigger the instrument by issuing the :TRIG:SING command, you can use the *OPC command to wait until the measurement cycle is completed.
See the Waiting for Trigger (OPC?).
Before creating your program, measure the time between the start and end of the measurement cycle. Then, code your program so that the controller waits for the actual measured time by using the appropriate command (for example, the WAIT command for HTBasic). This is a straightforward method, however, it must be performed with care: an incorrect waiting time could result in an unexpected error.