Visa Com Example In Visual Basic .Net - Agilent Technologies Infiniium 90000 Series Programmer's Manual

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

Advertisement

}

VISA COM Example in Visual Basic .NET

To compile and run this example in Microsoft Visual Studio 2008:
1
2
3
4
5
6
For more information, see the VISA COM Help that comes with Agilent IO
Libraries Suite 15.
'
' Agilent VISA COM Example in Visual Basic .NET
' -------------------------------------------------------------------
' This program illustrates a few commonly used programming
' features of your Agilent Infiniium Series oscilloscope.
' -------------------------------------------------------------------
Imports System
Imports System.IO
Imports System.Text
Imports System.Collections.Generic
Imports Ivi.Visa.Interop
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Marshal.ReleaseComObject(m_IoObject);
}
catch { }
try
{
Marshal.ReleaseComObject(m_ResourceManager);
}
catch { }
}
}
Open Visual Studio.
Create a new Visual Basic, Windows, Console Application project.
Cut- and- paste the code that follows into the C# source file.
Edit the program to use the VISA address of your oscilloscope.
Add a reference to the VISA COM 3.0 Type Library:
a
Right- click the project you wish to modify (not the solution) in the
Solution Explorer window of the Microsoft Visual Studio
environment.
Choose Add Reference....
b
In the Add Reference dialog, select the COM tab.
c
Select VISA COM 3.0 Type Library; then click OK.
d
e
Right- click the project you wish to modify (not the solution) in the
Solution Explorer window of the Microsoft Visual Studio environment
and choose Properties; then, select "Infiniium.VisaComInstrumentApp"
as the Startup object.
Build and run the program.
38
Sample Programs
1041

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents