Specifications

Status and Events
TDS3000, TDS3000B, and TDS3000C Series Programmer Manual
3-11
The same command sequence using the *OPC command for synchronization
looks like this:
REM “Set up single-sequence acquisition”
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
REM “Enable the status registers”
DESE 1
*ESE 1
*SRE 32
REM “Acquire waveform data”
ACQUIRE:STATE ON
REM “Set up the measurement parameters”
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
REM “Wait until the acquisition is complete before taking the measurement”
*OPC
Program can now do different tasks such as talk to other
devices. The SRQ, when it comes, interrupts those tasks and
returns control to this task.
REM “Take amplitude measurement on acquired data”
MEASUREMENT:IMMED:VALUE?
This technique is more efficient but requires more sophisticated programming.
The *OPC? query places a 1 in the Output Queue once an operation is complete.
A timeout could occur if you try to read the output queue before there is any data
in it.
The same command sequence using the *OPC? query for synchronization looks
like this:
REM “Set up single-sequence acquisition”
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
REM “Acquire waveform data”
ACQUIRE:STATE ON
REM “Set up the measurement parameters”
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
REM “Wait until the acquisition is complete before taking the measurement”
*OPC?
Wait for read from Output Queue.
Using the *OPC? Query