TDS5000B Online Programmer Guide
-- 8 5 7 --
instrument will continue processing other commands. This means that
some operations will not be completed in the order that they were sent.
Sometimes the result of an operation depends on the result of an earlier
operation. A first operation must complete before the next one gets pro-
cessed. The instrument status and event reporting system provides ways
to do this.
For example, a typical application might involve acquiring a single--se-
quence waveform and then taking a measurement on the acquired wa-
veform. You could use the following command sequence to do 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
/** Take amplitude measurement **/
MEASUREMENT: MEAS1:VALUE?
The acquisition of the waveform requires extended processing time. It
may not finish before the instrument takes an amplitude measurement
(see the following figure). This can result in an incorrect amplitude val-
ue.
To ensure the instrument completes waveform acquisition before taking
the measurement on the acquired data, you can synchronize the pro-
gram.