1198
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
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
command sets.
•
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
descriptions.
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:
"http://www.agilent.com/find/commandexpert"
•
•
"SCPI.NET Example in Visual Basic .NET"
•
"SCPI.NET Example in IronPython"
SCPI.NET Example in C#
To compile and run this example in Microsoft Visual Studio 2008:
1
Install the Agilent Command Expert software and the command set for
the oscilloscope.
2
Open Visual Studio.
3
Create a new Visual C#, Windows, Console Application project.
4
Cut- and- paste the code that follows into the C# source file.
5
Edit the program to use the address of your oscilloscope.
6
Add a reference to the SCPI.NET driver:
a
Right- click the project you wish to modify (not the solution) in the
Solution Explorer window of the Microsoft Visual Studio
environment.
b
Choose
Add Reference...
.
c
In the Add Reference dialog, select the
Browse
tab, and navigate to
the ScpiNetDrivers folder.
Summary of Contents for InfiniiVision 3000 X-Series
Page 1: ...s1 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide...
Page 30: ...30 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide...
Page 54: ...54 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 2 Setting Up...
Page 68: ...68 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 3 Getting Started...
Page 218: ...218 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 6 Root Commands...
Page 242: ...242 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 8 BUS n Commands...
Page 280: ...280 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 11 DEMO Commands...
Page 288: ...288 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 12 DIGital d Commands...
Page 340: ...340 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 15 FUNCtion Commands...
Page 358: ...358 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 16 HARDcopy Commands...
Page 378: ...378 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 18 MARKer Commands...
Page 446: ...446 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 19 MEASure Commands...
Page 564: ...564 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 23 POWer Commands...
Page 842: ...842 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 29 TIMebase Commands...
Page 1054: ...1054 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 35 Error Messages...
Page 1076: ...1076 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide 36 Status Reporting...
Page 1232: ...1232 Agilent InfiniiVision 3000 X Series Oscilloscopes Programmer s Guide Index...