Agilent Technologies InfiniiVision 5000 Series Programmer's Manual page 745

Hide thumbs Also See for InfiniiVision 5000 Series:
Table of Contents

Advertisement

'
' If you are using a different signal or different channels, these
' commands may not work as explained in the comments.
' -------------------------------------------------------------------
Sub Main()
VisaComError:
End Sub
'
' Initialize
' -------------------------------------------------------------------
' Initialize will start the program with the oscilloscope in a known
' state.
' cause the program to fail or not perform as expected.
'
' In this example, we initialize the following:
'
'
'
'
'
'
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
On Error GoTo VisaComError
' Create the VISA COM I/O resource.
Set myMgr = New VisaComLib.ResourceManager
Set myScope = New VisaComLib.FormattedIO488
' GPIB.
'Set myScope.IO = myMgr.Open("GPIB0::7::INSTR")
' LAN.
'Set myScope.IO = myMgr.Open("TCPIP0::a-mso6102-90541::inst0::INSTR")
' USB.
Set myScope.IO = myMgr.Open("USB0::2391::5970::30D3090541::0::INSTR")
' Initialize - Initialization will start the program with the
' oscilloscope in a known state.
Initialize
' Capture - After initialization, you must make waveform data
' available to analyze.
' DIGITIZE command.
Capture
' Analyze - Once the waveform has been captured, it can be analyzed.
' There are many parts of a waveform to analyze.
' some of the possible ways to analyze various parts of a waveform.
Analyze
Exit Sub
MsgBox "VISA COM Error:" + vbCrLf + Err.Description
This is required because some uninitialized conditions could
- Oscilloscope
- Channel 1 range
- Display Grid
- Timebase reference, range, and delay
- Trigger mode and type
To do this, capture the data using the
Programming Examples
This example shows
745
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents