Status and Events
3-16
TDS200, TDS1000/2000, TDS1000B/2000B, TPS2000 Programmer
This technique requires less bus traffic than did looping on BUSY?.
The program ca n now do different tasks such as t alk to other
devices. The SRQ, when i t comes, interrupts those tasks and
returns control to this task.
/* Take peak-to-peak measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This tec hnique is more efficient but require s more sophistica ted
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 synchroni zation
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?