Synchronizing With A Single-Shot Device Under Test (Dut) - Agilent Technologies InfiniiVision 4000 X-Series Programmer's Manual

Oscilloscopes
Hide thumbs Also See for InfiniiVision 4000 X-Series:
Table of Contents

Advertisement

39
Synchronizing Acquisitions

Synchronizing with a Single-Shot Device Under Test (DUT)

The examples in
Synchronization With Timeout"
continually running and therefore the oscilloscope will have more than one
opportunity to trigger. With a single shot DUT, there is only one
opportunity for the oscilloscope to trigger, so it is necessary for the
oscilloscope to be armed and ready before the DUT is enabled.
The blocking :DIGitize command cannot be used for a single shot DUT because once the
N O T E
:DIGitize command is issued, the oscilloscope is blocked from any further commands until
the acquisition is complete.
This example is the same
page 1200 with the addition of checking for the armed event status.
'
' Synchronizing single-shot acquisition using polling.
' ===================================================================
Option Explicit
Public myMgr As VisaComLib.ResourceManager
Public myScope As VisaComLib.FormattedIO488
Public varQueryResult As Variant
Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
1202
"Blocking Synchronization"
On Error GoTo VisaComError
' Create the VISA COM I/O resource.
Set myMgr = New VisaComLib.ResourceManager
Set myScope = New VisaComLib.FormattedIO488
Set myScope.IO = myMgr.Open("TCPIP0::130.29.69.12::inst0::INSTR")
myScope.IO.Clear
' Clear the interface.
' Set up.
' -----------------------------------------------------------------
' Set up the trigger and horizontal scale.
myScope.WriteString ":TRIGger:MODE EDGE"
myScope.WriteString ":TRIGger:EDGE:LEVel 2"
myScope.WriteString ":TIMebase:SCALe 5e-8"
' Stop acquisitions and wait for the operation to complete.
myScope.WriteString ":STOP"
myScope.WriteString "*OPC?"
strQueryResult = myScope.ReadString
' Acquire.
Agilent InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide
on page 1199 and
on page 1200 assume the DUT is
"Polling Synchronization With Timeout"
"Polling
on

Advertisement

Table of Contents
loading

Table of Contents