Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1200

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

Advertisement

39
Programming Examples
1200
}
catch (System.ApplicationException err)
{
Console.WriteLine("*** SCPI.NET Error : " + err.Message);
}
catch (System.SystemException err)
{
Console.WriteLine("*** System Error Message : " + err.Message);
}
catch (System.Exception err)
{
System.Diagnostics.Debug.Fail("Unexpected Error");
Console.WriteLine("*** Unexpected Error : " + err.Message);
}
finally
{
//myScope.Dispose();
}
}
/*
* Initialize the oscilloscope to a known state.
* --------------------------------------------------------------
*/
private static void Initialize()
{
string strResults;
// Get and display the device's *IDN? string.
myScope.SCPI.IDN.Query(out strResults);
Console.WriteLine("*IDN? result is: {0}", strResults);
// Clear status and load the default setup.
myScope.SCPI.CLS.Command();
myScope.SCPI.RST.Command();
}
/*
* Capture the waveform.
* --------------------------------------------------------------
*/
private static void Capture()
{
string strResults;
double fResult;
// Use auto-scale to automatically configure oscilloscope.
myScope.SCPI.AUToscale.Command(null, null, null, null, null);
// Set trigger mode.
myScope.SCPI.TRIGger.MODE.Command("EDGE");
myScope.SCPI.TRIGger.MODE.Query(out strResults);
Console.WriteLine("Trigger mode: {0}", strResults);
// Set EDGE trigger parameters.
myScope.SCPI.TRIGger.EDGE.SOURce.Command("CHANnel1");
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Advertisement

Table of Contents
loading

Table of Contents