Tektronix TLS 216 Hunting Equipment User Manual


 
Status and Events
3–12
TLS 216 Programmer Manual
The *OPC? query places a 1 in the Output Queue once an operation is complete.
A time-out could occur if you try to read the output queue before there is any
data in it.
The same command sequence using the *OPC? query for synchronization looks
like this:
/* Set up single-sequence acquisition */
SELECT:GROUP1 ON
GROUP1:FIRST 1
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE NORMAL SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the measurement */
*OPC?
Wait for read from Output Queue.
/* Take amplitude measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This is the simplest approach. It requires no status handling or loops. However,
you must set the controller time-out for longer than the acquisition operation.
Using the *OPC? Query