Status and Events
3−16
TDS200/1000/2000 Series Oscilloscope Programmer Manual
This technique requires less bus traffic than did looping on BUSY?.
The program can now do different tasks such as talk to other
devices. The SRQ, when it comes, interrupts those tasks and
returns control to this task.
/* Take peak-to-peak measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This technique is more efficient but requires more sophisticated
programming.
Using the *OPC? Query (the Most Simple Approach)
*OPC? places a 1 in the Output Queue once an operation is
complete. A timeout could occur if you try to read the output queue
before there is any data in it.
The same command sequence using *OPC? for synchronization
follows:
/* Set up single−sequence acquisition */
SELECT:CH1 ON
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE PK2PK
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before
taking the measurement */
*OPC?