Agilent Technologies E5071C Manual page 1128

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

Detecting End of Measurement
Overview
Using Status Register
Using SCPI.TRIGger.SEQuence.SINGle Object
Other topics about Controlling E5071C
Overview
This chapter uses sample programs to demonstrate how to trigger the
instrument to start a new measurement cycle and how to detect the end of
a measurement cycle. The trigger system is responsible for such tasks as
detecting the start of a measurement cycle (triggering) and
enabling/disabling measurement on each channel.
You can detect the end of measurement by using either the status register
or the SCPI.TRIGger.SEQuence.SINGle object.
Using Status Register
The status of the E5071C can be detected through the status register. If
your program is based on SPCI commands, you can use SRQ (Service
Request) interrupts to detect the end of measurement.
On the other hand, if your program is based on COM objects, SRQ
interrupts are not available; instead, you can use the following object to
suspend the program until SRQs are generated upon completion of
measurement.
WaitOnSRQ
Sample program is available to download from the Agilent Support page,
named meas_srq.vba, that demonstrates how to use the status register to
suspend the program until the end of measurement. This VBA program
consists of the following modules:
Object
name
frmSrqMeas
mdlSrqMeas
This sample program correctly runs when the maximum number
of channels/traces is set 9 channels/9 traces.
When you run this VBA program, the following UserForm appears.
Module
type
UserForm
Standard
module
Content
Uses the status register to wait for
the end of measurement.
Invokes a UserForm.
Programming
1355

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents