Agilent Technologies 86038A User Manual page 180

Optical dispersion analyzer
Table of Contents

Advertisement

Remote Operation
180
Example 1: Simple Application for Controlling the ODA
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent
call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if(disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void Form1_Load(object sender, System.EventArgs e)
{
}
private void NewStatusEvent(string msg, ODACommon.eEvent-
LogType e)
{
// Let the user know something happened
lblStatus.Text=msg;
}
private void TriggerProgressEvent(ODACommon.enumStatus status,
ODACommon.enumAcquisitionMode acqMode)
{
if (acqMode == ODACommon.enumAcquisitionMode.eMeasure-
ment)
{
// Instrument is making a measurement
if (status == ODACommon.enumStatus.COMPLETE)
{
// The measurement is done, transfer data!
sendDataToFile(@"c:\mydata.txt");
}
}
}
private void sendDataToFile(string fileName)
{
Agilent 86038A Optical Dispersion Analyzer, Third Edition

Advertisement

Table of Contents
loading

Table of Contents