Status and Events
HORIZONTAL:MO
DE:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Enable the status registers */
DESE 1
*ESE 1
*SRE 32
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IM
MED:SOURCE CH1
/* Wait until the acquisition is complete before taking the measurement
*/
*OPC
The program can now do different tasks such as talk to other device s. The SRQ,
when it comes, interrupts those tasks and returns control to this task.
/* Take amplitude measurement */
MEASUREMENT:IMMED:VALUE
This technique is more efficient but requires more sophisticated programming.
*OPC?
The *OPC? query places a 1 in the Output Queue once an operation that generates
an OPC message is complete. A time out 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:
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:MODE:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
3-10 DPO7000, DPO70000/B and DSA7000/B Series Programmer Manual