Status and Events
TDS200, TDS1000/2000, TDS1000B/2000B, TPS2000 Programmer
3-15
MEASUREMENT:IMMED:VALUE?
This technique requires less bus traffic than did looping on BUSY?.
Service Request Method (GPIB and USB 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 comma nds. 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 comma nd 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?