Scpi.net Examples; Scpi.net Example In C - Agilent Technologies Infiniium 90000 Series Programmer's Manual

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

Advertisement

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
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
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.
on page 1129
on page 1137
on page 1144
38
Sample Programs
1129

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents