Status and Events
TDS200/1000/2000 Series Oscilloscope Programmer Manual
3−15
MEASUREMENT:IMMED:VALUE?
This technique requires less bus traffic than did looping on BUSY?.
Service Request Method (GPIB Only). 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. Also, enable
service requests by setting the ESB bit in the Service Request Enable
Register (SRER) using the *SRE command. When the operation is
complete, a Service Request is generated.
The same command sequence using the *OPC command for
synchronization looks like this:
/* Set up single-sequence acquisition */
SELECT:CH1 ON
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 PK2PK
MEASUREMENT:IMMED: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 devices. The SRQ, when it comes, interrupts
those tasks and returns control to this task
/* Take peak−to−peak measurement on acquired data */
MEASUREMENT:IMMED:VALUE?