Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1021

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

Sub Main()
VisaComError:
End Sub
'
' Initialize the oscilloscope to a known state.
' -------------------------------------------------------------------
Private Sub Initialize()
VisaComError:
End Sub
'
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
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.71.191::inst0::INSTR")
myScope.IO.Timeout = 15000
myScope.IO.Clear
' Clear the interface.
' Initialize - start from a known state.
Initialize
' Capture data.
Capture
' Analyze the captured waveform.
Analyze
Exit Sub
MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End
On Error GoTo VisaComError
' Clear status.
DoCommand "*CLS"
' Get and display the device's *IDN? string.
strQueryResult = DoQueryString("*IDN?")
Debug.Print "Identification string: " + strQueryResult
' Load the default setup.
DoCommand "*RST"
Exit Sub
MsgBox "VISA COM Error:" + vbCrLf + Err.Description
End
' Set I/O communication timeout.
38
Sample Programs
1021

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents