Status and Events
When an event oc
curs, a signal is sent to the DESER (1). If that type of event
is enabled in the DESER (that is, if the bit for that event type is set to 1), the
appropriate bit in the SESR is set to one, and the event is recorded in the Event
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).
Synchron
ization Methods
Overview
Although most GPIB commands are completed a lmost immediately after b eing
received by the instrument, some commands start a process that requires more
time. Fo
r example, once a s ingle 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 first operation must complete before the next one gets processed. The
instrument status and event reporting system provides ways to do this.
For example, a typical application might involve acquiring a single-sequence
waveform and then taking a measurement on the acquired w aveform. You could
use
the following command sequence to do this:
/** Set up conditional acquisi tion **/
AC
QUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:MODE:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/** Acqui re waveform data **/
ACQUIRE:STATE ON
/** Set up the measurement parameters **/
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT: IMMED:SOURCE CH
1
/** Take amplitude measurement **/
MEASUREMENT: MEAS1:VALUE
The acquisition of the waveform requires extended processing time. It may not
finish before the instrument takes an amplitude measurement (see the following
figure). This can result in an incorrect amplitude value.
3-6 DPO7000, DPO70000/B and DSA7000/B Series Programmer Manual