Keysight Technologies InfiniiVision 4000 X Series Programmer's Manual page 1630

Hide thumbs Also See for InfiniiVision 4000 X Series:
Table of Contents

Advertisement

44
Programming Examples
);
1630
VisaComInstrument("USB0::0x0957::0x17A6::US50210029::0::INSTR"
myScope.SetTimeoutSeconds(10);
// Initialize - start from a known state.
Initialize();
// Capture data.
Capture();
// Analyze the captured waveform.
Analyze();
}
catch (System.ApplicationException err)
{
Console.WriteLine("*** VISA COM 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.Close();
}
}
/*
* Initialize the oscilloscope to a known state.
* --------------------------------------------------------------
*/
private static void Initialize()
{
string strResults;
// Get and display the device's *IDN? string.
strResults = myScope.DoQueryString("*IDN?");
Console.WriteLine("*IDN? result is: {0}", strResults);
// Clear status and load the default setup.
myScope.DoCommand("*CLS");
myScope.DoCommand("*RST");
}
/*
* Capture the waveform.
* --------------------------------------------------------------
*/
private static void Capture()
{
// Use auto-scale to automatically configure oscilloscope.
myScope.DoCommand(":AUToscale");
Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the InfiniiVision 4000 X Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Infiniivision mso-x 4034aInfiniivision mso-x 4054aInfiniivision mso-x 4032aInfiniivision mso-x 4022aInfiniivision mso-x 4104aInfiniivision mso-x 4154a ... Show all

Table of Contents