
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:
/** Sets up conditional acquisition **/
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER COUNT 1
ACQUIRE:STOPAFTER:MODE CONDITION
/** Enable the status registers **/
DESE 1
*ESE 1
*SRE 0
/** Sets up the data preamble **/
DATA:START 1
DATA:STOP 500
DATA:ENCDG RIBINARY
/** Clear data and then acquire waveforms until
conditional stop occurs**/
ACQUIRE:DATA:CLEAR
ACQUIRE:STATE ON
/** Wait until the acquisition is complete before
querying the curve data**/
*OPC
While serial poll = 0, keep looping
/** Get the curve data **/
CURVE?
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, a Service Request will be generated.
The same command sequence using the *OPC command for synchronization
looks like this:
/** Sets up conditional acquisition **/
DSA8300 Programmer Manual
3-9
Summary of Contents for DSA8300
Page 1: ...xx DSA8300 Digital Serial Analyzer ZZZ Programmer Manual P077057002 077 0570 02 ...
Page 2: ......
Page 8: ...Preface iv DSA8300 Programmer Manual ...
Page 9: ...Getting Started ...
Page 10: ......
Page 15: ...Syntax and Commands ...
Page 16: ......
Page 404: ...Commands Listed in Alphabetical Order 2 388 DSA8300 Programmer Manual ...
Page 405: ...Status and Events ...
Page 406: ......
Page 426: ...Status and Events 3 20 DSA8300 Programmer Manual ...
Page 427: ...Examples ...
Page 428: ......
Page 431: ...Appendices ...
Page 432: ......
Page 433: ...Appendix A Character Set DSA8300 Programmer Manual A 1 ...
Page 434: ...Appendix A Character Set A 2 DSA8300 Programmer Manual ...
Page 446: ...Appendix C Factory Default Setup Values C 8 DSA8300 Programmer Manual ...