Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1131

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

Advertisement

Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
Console.ReadKey();
}
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;
// Set probe attenuation factor.
myScope.SCPI.CHANnel.PROBe.Command(1, 1.0, null);
myScope.SCPI.CHANnel.PROBe.Query(1, out fResult, out strResults);
Console.WriteLine("Channel 1 probe attenuation factor: {0}",
fResult);
// Use auto-scale to automatically configure oscilloscope.
myScope.SCPI.AUToscale.Command();
38
Sample Programs
1131

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents