EasyManuals Logo

Agilent Technologies InfiniiVision 5000 Series Programmer's Guide

Agilent Technologies InfiniiVision 5000 Series
788 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 #719 background imageLoading...
Page #719 background image
Programming Examples 12
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide 719
Capture();
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
{
oscp.Close();
}
}
/*
* Initialize()
* --------------------------------------------------------------
* This function initializes both the interface and the
* oscilloscope to a known state.
*/
private static void Initialize()
{
StringBuilder strResults;
/* RESET - This command puts the oscilloscope into a known
* state. This statement is very important for programs to
* work as expected. Most of the following initialization
* commands are initialized by *RST. It is not necessary to
* reinitialize them unless the default setting is not suitable
* for your application.
*/
oscp.DoCommand("*RST"); // Reset the to the defaults.
oscp.DoCommand("*CLS"); // Clear the status data structures.
/* IDN - Ask for the device's *IDN string.
*/
strResults = oscp.DoQueryString("*IDN?");
// Display results.
Console.Write("Result is: {0}", strResults);
/* AUTOSCALE - This command evaluates all the input signals
* and sets the correct conditions to display all of the
* active signals.
*/
oscp.DoCommand(":AUToscale");
/* CHANNEL_PROBE - Sets the probe attenuation factor for the
* selected channel. The probe attenuation factor may be from

Table of Contents

Other manuals for Agilent Technologies InfiniiVision 5000 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies InfiniiVision 5000 Series and is the answer not in the manual?

Agilent Technologies InfiniiVision 5000 Series Specifications

General IconGeneral
BrandAgilent Technologies
ModelInfiniiVision 5000 Series
CategoryTest Equipment
LanguageEnglish

Related product manuals