Status and Events
3−10
TDS200/1000/2000 Series Oscilloscope Programmer Manual
Synchronization Methods
Although most commands are completed almost immediately after
being received by the oscilloscope, some commands start a process
that requires more time. For example, once a HARDCOPY START
command is executed, it may be a few seconds before the hardcopy
operation is complete. Rather than remain idle while the operation is
in process, the oscilloscope continues processing other commands.
This means that some operations are not completed in the order that
they were sent.
There may be times when the result of an operation is dependent on
the result of an earlier one, and you must be assured that the first
operation has completed before processing the next one. The status
and event reporting system provides ways to do this.
For example, a typical application would be to acquire a single-se-
quence waveform, and then take a measurement on the acquired
waveform. You could use the following command sequence:
/** Set up single-sequence acquisition **/
SELECT:CH1 ON
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/** Acquire waveform data **/
ACQUIRE:STATE ON
/** Set up the measurement 2
MEASUREMENT:IMMED:TYPE PK2PK
MEASUREMENT:IMMED:SOURCE CH1
/** Take peak-to-peak measurement on acquired data **/
MEASUREMENT:IMMED:VALUE?
The acquisition of the waveform requires extended processing time
and may not complete before the amplitude measurement is taken.
(See Figure 3-7.) This will result in an incorrect peak-to-peak value.