EasyManuals Logo

Keysight Technologies InfiniiVision DSOX1204G User Manual

Keysight Technologies InfiniiVision DSOX1204G
946 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #861 background imageLoading...
Page #861 background image
Programming Examples 36
Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide 861
namespace InfiniiVision
{
class VisaInstrumentApp
{
private static VisaInstrument myScope;
public static void Main(string[] args)
{
try
{
myScope = new
VisaInstrument("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 Error Message : " + 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()
{
StringBuilder 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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies InfiniiVision DSOX1204G and is the answer not in the manual?

Keysight Technologies InfiniiVision DSOX1204G Specifications

General IconGeneral
BrandKeysight Technologies
ModelInfiniiVision DSOX1204G
CategoryTest Equipment
LanguageEnglish

Related product manuals