TDS5000B Online Programmer Guide
-- 8 5 9 --
er becomes full, the controller will be unable to write more commands
to the buffer. This can cause a time--out.
BUSY?
The BUSY? query allows you to find out whether the instrument is
busy processing a command that has an extended processing time such
as single--sequence acquisition.
The same command sequence, using the BUSY? query for synchroniza-
tion, l
/* 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
/* Wait until the acquisition is complete
before taking the measurement */
While BUSY? keep looping
/* Take amplitude measurement */
MEASUREMENT:IMMED:VALUE?
This sequence lets you create your own wait loop rather than using the
*WAI command. The BUSY? query helps you avoid time--outs caused
by writing too many commands to the input buffer. The controller is
still tied up though, and the repeated BUSY? query will result in more
bus traffic.
*OPC
If the corresponding status registers are enabled, the *OPC command
sets the OPC bit in the Standard Event Status Register (SESR) when an