Status and Events
Serial Poll Method:
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.
When the operation is complete, the OPC bit in the Standard Event Status Register
(SESR) will be enabled and the Event Status Bit (ESB) in the Status Byte Register
will be enabled.
The same command sequence using the *OPC command for synchronization with
serial polling looks like this:
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
DISPLAY:WAVEVIEW1:CH1:STATE 1
HORIZONTAL:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Enable the status registers */
DESE 1
*ESE 1
*SRE 0
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters on the channel we’re
about to sequence */
MEASUREMENT:MEAS1:TYPE AMPLITUDE
MEASUREMENT:MEAS1:SOURCE CH1
/* Wait until the acquisition is complete before taking the
measurement.
*/
*OPC
While serial poll = 0, keep looping
/* Take amplitude measurement */
MEASUREMENT:MEAS1:RESUlts:CURRentacq:MEAN?
This technique requires less bus traf
fi
c than did looping on BUSY.
Service Request Method:
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.
You can 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, the oscilloscope will generate a Service Request.
The same command sequence using the *OPC command for synchronization
looks like this
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
DISPLAY:WAVEVIEW1:CH1:STATE 1
HORIZONTAL:RECORDLENGTH 1000
3-10
MSO54, MSO56, MSO58, MSO58LP Programmer
Summary of Contents for MSO54
Page 1: ...xx 5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual P077130502 077 1305 02 ...
Page 2: ......
Page 3: ...5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual xx www tek com 077 1305 02 ...
Page 8: ...Preface iv MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 26: ...Command Syntax 2 10 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 936: ...Status and Events 3 20 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 937: ...Appendix A Character Set MSO54 MSO56 MSO58 MSO58LP Programmer A 1 ...
Page 938: ...Appendix A Character Set A 2 MSO54 MSO56 MSO58 MSO58LP Programmer ...