TDS5000B Online Programmer Guide
-- 8 6 0 --
operation is complete. You achieve synchronization by using this com-
mand with either a serial poll or service request handler.
Serial Poll Method: Enable the OPC bit in the Device Event Status
Enable Register (DESER) and the Event Status Enable Register
(ESER) using the DESE and *ESE commands.
When the operation is complete, the OPC bit in the Standard Event Sta-
tus Register (SESR) will be enabled and the Event Status Bit (ESB) in
the Status Byte Register will be enabled.
The same command sequence using the *OPC command for synchro-
nization with serial polling looks like this:
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Enable the status registers */
DESE 1
*ESE 1
*SRE 0
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is com-
plete before taking the measurement.
*/
*OPC
While serial poll = 0, keep looping
/* Take amplitude measurement */