178
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
Starting a VB.NET PDLA Application
Install Software
“Recommended Control Sequence” on page 138
.
Application Shell
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 project and save it to a local directory. Use the
default file name of WindowsApplication1.
This creates a project with a blank frame. To add controls to
the frame, click
View
>
Toolbox
(or click the icon on the
toolbar.)
3 From the toolbox, add a label with a Caption “PDLA Name:”
and a text box named tbPdlaName. 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 your PDLA
network name.
4 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.
5 Select Browse, then navigate to C:\Program
Files\Agilent\Agilent PDLA Remote Control.
6 Click I
nstrumentObjects.dll
, then ctrl-click on
RemoteClient.dll
(you can add both at once.) Select
Open
, which brings you
back to the References dialog. You will see the two dll’s in the
Selected Components pane. Select
OK
, and
InstrumentObjects and RemoteClient will appear in the
Solution Explorer on the right side of the Visual Studio
window.
7 Right click on the form and select View Code. This brings up
a simple From1.vb code window. Find the line that reads:
Inherits System.Windows.Forms.Form. and add right after
that line the pdla client object as a member:
Private WithEvents pdlaClient As RemoteClient.Communicator
Summary of Contents for 86038B
Page 1: ...Agilent 86038B Photonic Dispersion and Loss Analyzer User s Guide ...
Page 4: ...4 ...
Page 20: ...20 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 34: ...34 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition Figure 2 b Rear Panel ...
Page 78: ...78 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 92: ...92 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 202: ...202 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition End Sub ...
Page 348: ...348 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Page 349: ......