Status and Events
TDS200/1000/2000 Series Oscilloscope Programmer Manual
3−13
Using the BUSY Query
BUSY? allows you to find out whether the oscilloscope is busy
processing a command that has an extended processing time, such as
single-sequence acquisition.
The same command sequence using BUSY? for synchronization
follows:
/* Set up single-sequence acquisition */
SELECT:CH1 ON
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE PK2PK
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the
measurement */
While BUSY? keep looping
/* Take peak-to-peak measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This sequence lets you create your own wait loop rather than using
the *WAI command. An advantage to using BUSY? is that you
eliminate the possibility of a time out caused by writing too many
commands to the input buffer. The controller is still tied up, though,
and the repeated BUSY? results in more bus traffic.