Agilent Technologies InfiniiVision 2000 X-Series Programmer's Manual page 901

Oscilloscopes
Hide thumbs Also See for InfiniiVision 2000 X-Series:
Table of Contents

Advertisement

7
For more information, see the SCPI.NET driver help that comes with
Agilent Command Expert.
/*
* Agilent SCPI.NET Example in C#
* -------------------------------------------------------------------
* This program illustrates a few commonly used programming
* features of your Agilent oscilloscope.
* -------------------------------------------------------------------
*/
using System;
using System.IO;
using System.Text;
using Agilent.CommandExpert.ScpiNet.AgInfiniiVision2000X_01_20;
namespace InfiniiVision
{
Agilent InfiniiVision 2000 X-Series Oscilloscopes Programmer's Guide
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
AgInfiniiVision2000X_01_20.dll; then, click OK.
Build and run the program.
class ScpiNetInstrumentApp
{
private static AgInfiniiVision2000X myScope;
static void Main(string[] args)
{
try
{
string strScopeAddress;
//strScopeAddress = "a-mx3054a-60028.cos.agilent.com";
strScopeAddress =
"TCPIP0::a-mx3054a-60028.cos.agilent.com::inst0::INSTR";
Console.WriteLine("Connecting to oscilloscope...");
Console.WriteLine();
myScope = new AgInfiniiVision2000X(strScopeAddress);
myScope.Transport.DefaultTimeout.Set(10000);
// Initialize - start from a known state.
Initialize();
// Capture data.
Capture();
// Analyze the captured waveform.
Analyze();
Console.WriteLine("Press any key to exit");
Console.ReadKey();
Programming Examples
901
38

Advertisement

Table of Contents
loading

Table of Contents