Scpi.net 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

SCPI.NET Example in Visual Basic .NET

To compile and run this example in Microsoft Visual Studio 2008:
1
2
3
4
5
6
7
For more information, see the SCPI.NET driver help that comes with
Agilent Command Expert.
'
' Agilent SCPI.NET Example in Visual Basic .NET
' -------------------------------------------------------------------
' This program illustrates a few commonly used programming
' features of your Agilent oscilloscope.
' -------------------------------------------------------------------
Imports System
Imports System.IO
Imports System.Text
Imports System.Collections.Generic
Imports Agilent.CommandExpert.ScpiNet.AgInfiniium90000_3_10
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Install the Agilent Command Expert software and the command set for
the oscilloscope.
Open Visual Studio.
Create a new Visual Basic, Windows, Console Application project.
Cut- and- paste the code that follows into the Visual Basic .NET source
file.
Edit the program to use the VISA address of your oscilloscope.
Add a reference to the SCPI.NET 3.0 driver:
Right- click the project you wish to modify (not the solution) in the
a
Solution Explorer window of the Microsoft Visual Studio
environment.
Choose Add Reference....
b
In the Add Reference dialog, select the Browse tab, and navigate to
c
the ScpiNetDrivers folder.
Windows XP: C:\Documents and Settings\All Users\Agilent\
Command Expert\ScpiNetDrivers
Windows 7: C:\ProgramData\Agilent\Command Expert\
ScpiNetDrivers
Select the .dll file for your oscilloscope, for example
d
AgInfiniium90000_1_10.dll; then, click OK.
Right- click the project you wish to modify (not the solution) in the
e
Solution Explorer window of the Microsoft Visual Studio environment
and choose Properties; then, select "Infiniium.ScpiNetInstrumentApp"
as the Startup object.
Build and run the program.
38
Sample Programs
1137

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents