Status and Events
Table 3-3: Oscilloscope operations that can generate OPC (cont.)
Command Conditions
TEKSecure
:TRIGger:A SETLevel
Example of Acquiring
and Measur
ing a
Single-Sequence
Waveform
For example, a typical application might involve acquiring a single-sequence
waveform
andthentakingameasurementontheacquiredwaveform.Youcould
use the following command sequence to do this:
/** Set u
p conditi onal acquisition **/
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/** Ac
quire w aveform data **/
ACQUIRE:STATE ON
/** Set up the measurement parameters **/
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH
1
/** Tak e amplitude measurement **/
MEA
SUREMENT:MEAS1:VALUE?
The acquisition of the waveform requires extended processing time. It may not
fin
ish before the oscilloscope takes an amplitude measurement (see the following
figure). This can result in an incorrect amplitude value.
Figure 3-7: Command Processing Without Using Synchronization
To ensure the oscilloscope completes waveform acquisition before taking the
measurement on the acquired data, you can synchronize the program using *WAI,
BUSY, *OPC, and *OPC?.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 3-9