Status and Events
Queue (2). If the corresponding bit in the ESER is also enabled (3), then the
ESB bit in the SBR is set to one (4).
When output is sent to the Output Queue, the MAV bit in the SBR is set to one (5).
When a bit in the SBR is set to one and the corresponding bit in the SRER is
enabled (6), the MSS bit in the SBR is set to one and a service request is generated
(7). Bit 2 of the SBR (MAV)
fl
ags the presence of events in the queue.
Synchronization Methods
Although most GPIB commands are completed almost immediately after being
received by the instrument, some commands start a process that requires more
time. For example, once a single sequence acquisition command is executed,
depending upon the applied signals and trigger settings, it may be a few seconds
before the acquisition is complete. Rather than remain idle while the operation is
in process, the instrument will continue processing other commands. This means
that some operations will not be completed in the order that they were sent.
Sometimes the result of an operation depends on the result of an earlier operation.
A
fi
rst operation must complete before the next one gets processed. The
instrument status and event reporting system provides ways to do this.
For example, synchronization may be used to ensure that the curve? query
command returns waveform data that is consistent with the current instrument
settings. You could use the following sequence to do 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 acquire waveforms until conditional
stop occurs**/
ACQUIRE:DATA:CLEAR
ACQUIRE:STATE ON
/** Synchronize the operations by using *WAI, Busy?,
*OPC, or *OPC?/
<Synchronization command>
/** Get the curve data **/
CURVE?
3-6
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 ...