Scpi.net Examples - Agilent Technologies InfiniiVision 3000 Programmer's Manual

X-series
Hide thumbs Also See for InfiniiVision 3000:
Table of Contents

Advertisement

39
Programming Examples

SCPI.NET Examples

These programming examples show how to use the SCPI.NET drivers that
come with Agilent's free Command Expert software.
While you can write code manually using SCPI.NET drivers (as described
in this section), you can also use the Command Expert software to:
• Connect to instruments and control them interactively using SCPI
• Quickly prototype and test command sequences.
• Generate C#, VB.NET, or C/C++ code for command sequences.
• Find, download, and install SCPI command sets.
• Browse command trees, search for commands, and view command
The Command Expert suite also comes with Add- ons for easy instrument
control and measurement data retrieval in NI LabVIEW, Microsoft Excel,
Agilent VEE, and Agilent SystemVue.
For more information on Agilent Command Expert, and to download the
software, see:
SCPI.NET Example in C#
To compile and run this example in Microsoft Visual Studio 2008:
1
2
3
4
5
6
1198
command sets.
descriptions.
"http://www.agilent.com/find/commandexpert"
"SCPI.NET Example in C#"
"SCPI.NET Example in Visual Basic .NET"
"SCPI.NET Example in IronPython"
Install the Agilent Command Expert software and the command set for
the oscilloscope.
Open Visual Studio.
Create a new Visual C#, Windows, Console Application project.
Cut- and- paste the code that follows into the C# source file.
Edit the program to use the address of your oscilloscope.
Add a reference to the SCPI.NET 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.
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
on page 1198
on page 1204
on page 1210

Advertisement

Table of Contents
loading

Table of Contents