Programming
269
1. Use the :INIT<ch>:CONT command to turn ON the continuous initiation
mode for the channels you want to measure and turn the mode OFF
for any other channel.
2. Issue the :TRIG:SOUR command to set the trigger source to "Bus
Trigger".
3. Trigger the instrument whenever you want to perform the
measurement. An external controller can trigger the instrument by
using one of the following three commands:
Command
Can *OPC? command be used to
wait for end of sweep?
Applicable trigger
source
*TRG
No
Bus trigger only
:TRG
External trigger
Bus trigger
Manual trigger
:TRG:SING
Yes
4. Repeat step 3 to start the next measurement cycle.
Waiting for the End of Measurement
•
Overview
• Sample Program in Excel VBA
Other topics about Starting a Measurement (Trigger) and Detecting the
Completion
Overview
The program listed in the below section is written in VISA-COM with Excel
VBA. It can be executed from the external PC controller. The program
demonstrates how to perform waiting for the end of measurement.
Waiting for the End of Measurement Sample Program in Excel VBA
Option Explicit
Implements VisaComLib.IEventHandler
' The variables of the resource manager
Dim ioMgr As VisaComLib.ResourceManager
Dim Ana As VisaComLib.FormattedIO488
Dim SRQ As VisaComLib.IEventManager