TDS5000B Online Programmer Guide
-- 8 5 8 --
You can use four commands to synchronize the operation of the instru-
ment with your application program: *WAI, BUSY?, *OPC, and
*OPC?
*WAI
The *WAI command forces completion of previous commands that
generate an OPC message. No commands after the *WAI are processed
before the OPC message(s) are generated
The same command sequence using the *WAI command for synchro-
nization looks like this:
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
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 be-
fore taking the measurement*/
*/
*WAI
/* Take amplitude measurement */
MEASUREMENT:IMMED:VALUE?
The controller can continue to write commands to the input buffer of
the instrument, but the commands will not be processed by the instru-
ment until all OPC operations in process are complete. If the input buff-