User Manual

Status and Events
/** Set up condi
tional a cquisition **/
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/** Acqui re
waveform data **/
ACQUIRE:STATE ON
/** Set up the measurement parameters **/
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT: IMMED:SOURCE CH
1
/** Take amplitude measurement **/
MEASUREM
ENT: ME AS1:VALUE?
The acquisition of the waveform requires extended processing time. It may not
nish be
fore the oscilloscope takes an amplitude measurement (see the following
gure). This can result in an incorrect amplitude value.
Figure 3-7: Command processing without using synchronization
To be sure the oscilloscope completes waveform acquisition before taking the
measurement on the acquired data, you can synchronize the program.
Figure 3-8: Processing sequence with synchronization
You can use four commands to synchronize the operation of the oscilloscope with
your application program: *WAI, BUSY, *OPC, and *OPC?
Using the *WAI Command
The *WAI command forces completion of previous commands that generate
an OPC message. No commands after the *WAI are processed before the OP C
message(s) are generated
The same command sequence using the *WAI command for synchronization
looks like this:
3-8 TDS200, TDS1000/2000, TDS1000B/2000B, TDS2000C, TPS2000 Programmer