Waiting For The Completion Of One Or More Sweeps (Detecting The Completion Of A Measurement); Using The Status Register - Agilent Technologies 4294A Programming Manual

Precision impedance analyzer
Hide thumbs Also See for 4294A:
Table of Contents

Advertisement

Starting a Measurement (Trigger) and Detecting the Completion of a Measurement
(End of Sweeps)
Waiting for the Completion of One or More Sweeps (Detecting the
Completion of a Measurement)
Waiting for the Completion of One or More Sweeps
(Detecting the Completion of a Measurement)

Using the status register

You can detect the state of the Agilent 4294A through its status register. The completion of
one or more sweeps is indicated by the instrument event status register. To detect the
completion of one or more sweeps from a program using the information in this register,
use an SRQ (service request).
To detect the completion of one or more sweeps with an SRQ, use the commands below.
The procedure is as follows:
Step 1. Make the setting so that the Agilent 4294A generates an SRQ when the sweep completion
bit in the instrument event status register is set to "1."
Step 2. Generate a trigger to start one or more sweeps.
Step 3. Perform the interrupt processing in the program when an SRQ is generated.
Figure 5-2
SRQ generation sequence (at the end of one or more sweeps)
Example 5-1 is a sample program using an SRQ to detect the completion of sweeps. This
program is stored on the sample program disk with the swp_srq.bas filename.
This program sets the sweep averaging factor to 4, makes the SRQ setting, and then
performs four sweeps. When an SRQ is generated at the completion of the sweeps, the
program displays the completion message and then finishes.
74
"*SRE" on page 260
"ESNB" on page 314
Chapter 5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents