Tektronix TDS 310 Sprinkler User Manual


 
Status and Events
TDS 310, TDS 320 & TDS 350 Programmer Manual
3Ć11
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 synchronizaĆ
tion 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 AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* 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.
/* Take amplitude measurement on acquired data */
MEASUREMENT:IMMED:VALUE?
This technique is more efficient, but requires more sophisticated programĆ
ming.