Tektronix TDS 320 Sprinkler User Manual


 
Status and Events
Status and Events
3Ć12
Using the *OPC Query
*OPC? placesa1intheOutput 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 *OPC? for synchronization looks like
this:
/* 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 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. HowevĆ
er, you must set the controller timeĆout for longer than the acquisition operaĆ
tion.