Agilent Technologies 86038B User Manual page 187

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

Starting a C# PDLA Application
Install Software
Application Shell
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
Refer to
"Recommended Control Sequence" on page
The following steps show you how to build a simple shell to
connect to the PDLA.
1 Run Visual Studio .NET.
2 Open a new C# project, a windows application. This creates a
project with a blank frame.
3 To add controls to the frame, click View > Toolbox.
4 From the toolbox, add a label with a Caption "PDLA Name:"
and a text box named tbPdlaName.
5 In the Properties dialog, click on Text and type the network
name of your PDLA as the default text. (Refer to PDLA Help >
About to find the PDLA network name.)
6 From the main menu, click Project > Add Reference. This
brings up a dialog that defaults to the .NET tab. You will be
adding the .NET incarnation of the PDLA. Select Browse,
then navigate to C:\Program Files\Agilent\Agilent PDLA
Remote Control. Click on InstrumentObjects.dll, then ctrl-
click on RemoteClient.dll (you can add both at once.) Click
Open, which brings you back to the References dialog. You
will see the two dll's in the Selected Components pane. Click
OK, and InstrumentObjects and RemoteClient will appear in
the Solution Explorer on the right hand side of the Visual
Studio window.
7 Controlling the PDLA involves using lots of constants such as
eMeasurementType. The 'using' directive at the top of your C-
sharp file lets you use the PDLA specific constants without
fully qualifying them. At the head of your C-sharp source file
(right click on Form and select View Code), locate the block
of using statements. Add these at the end of the block:
using Agilent.LWD.Ag86038x.InstrumentObjects;
using Agilent.LWD.Ag86038x;
8 In the same source file as above, locate the summary
description for
138.
187

Advertisement

Table of Contents
loading

Table of Contents