![Tektronix DSA8300 Скачать руководство пользователя страница 414](http://html1.mh-extra.com/html/tektronix/dsa8300/dsa8300_programmers-manual_1077992414.webp)
Status and Events
CURVE?
Although *WAI is one of the easiest ways to achieve synchronization, it is also the
most costly. The processing time of the instrument is slowed since it is processing
a single command at a time. This time could be spent doing other tasks.
The controller can continue to write commands to the input buffer of the
instrument, but the commands will not be processed by the instrument until all
operations in process are complete. If the input buffer becomes full, the controller
will be unable to write more commands to the buffer. This can cause a timeout.
BUSY
The BUSY? query allows you to
fi
nd out whether the instrument is busy
processing a command that has an extended processing time such as
single-sequence acquisition.
The same command sequence, using the BUSY? 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
/** 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**/
While BUSY? keep looping
/** Get the curve data **/
CURVE?
This sequence lets you create your own wait loop rather than using the *WAI
command. The BUSY? query helps you avoid time-outs caused by writing too
many commands to the input buffer. The controller is still tied up, though, and the
repeated BUSY? query will result in more bus traf
fi
c.
*OPC
If the corresponding status registers are enabled, the *OPC command sets the
OPC bit in the Standard Event Status Register (SESR) when an operation is
complete. You achieve synchronization by using this command with either a
serial poll or service request handler.
3-8
DSA8300 Programmer Manual
Содержание DSA8300
Страница 1: ...xx DSA8300 Digital Serial Analyzer ZZZ Programmer Manual P077057002 077 0570 02 ...
Страница 2: ......
Страница 3: ...DSA8300 Digital Serial Analyzer ZZZ Programmer Manual xx Revision B www tektronix com 077 0570 02 ...
Страница 8: ...Preface iv DSA8300 Programmer Manual ...
Страница 9: ...Getting Started ...
Страница 10: ......
Страница 15: ...Syntax and Commands ...
Страница 16: ......
Страница 404: ...Commands Listed in Alphabetical Order 2 388 DSA8300 Programmer Manual ...
Страница 405: ...Status and Events ...
Страница 406: ......
Страница 426: ...Status and Events 3 20 DSA8300 Programmer Manual ...
Страница 427: ...Examples ...
Страница 428: ......
Страница 431: ...Appendices ...
Страница 432: ......
Страница 433: ...Appendix A Character Set DSA8300 Programmer Manual A 1 ...
Страница 434: ...Appendix A Character Set A 2 DSA8300 Programmer Manual ...
Страница 446: ...Appendix C Factory Default Setup Values C 8 DSA8300 Programmer Manual ...