![Tektronix DSA8300 Programmer'S Manual Download Page 416](http://html1.mh-extra.com/html/tektronix/dsa8300/dsa8300_programmers-manual_1077992416.webp)
Status and Events
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 500
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER:CONDITION ACQWFMS
ACQUIRE:STOPAFTER:COUNT 100
ACQUIRE:STOPAFTER:MODE CONDITION
/** Enable the status registers **/
DESE 1
*ESE 1
*SRE 32
/** Set up measurement parameters **/
MEASUREMENT:MEAS1:TYPE AMPLITUDE
MEASUREMENT:MEAS1:SOURCE CH1
/** Acquire waveforms until conditional stop occurs**/
ACQUIRE:DATA:CLEAR
ACQUIRE:STATE ON
/**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 amplitude measurement **/
MEASUREMENT:MEAS1:VALUE?
This technique is more ef
fi
cient but requires more sophisticated programming.
*OPC?
The *OPC? query places a 1 in the Output Queue once an operation is complete.
A timeout could occur if you try to read the output queue before there is any
data in it.
The same command sequence using the *OPC? query for synchronization 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
/** Set up measurement parameters **/
MEASUREMENT:MEAS1:TYPE AMPLITUDE
EASUREMENT:MEAS1:SOURCE CH1
/** Clear data, and then acquire waveforms until
conditional stop occurs**/
3-10
DSA8300 Programmer Manual
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 ...