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
Содержание 86038B
Страница 1: ...Agilent 86038B Photonic Dispersion and Loss Analyzer User s Guide ...
Страница 4: ...4 ...
Страница 20: ...20 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Страница 34: ...34 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition Figure 2 b Rear Panel ...
Страница 58: ...58 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition Figure 11 86038B Block Diagram ...
Страница 78: ...78 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Страница 92: ...92 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Страница 202: ...202 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition End Sub ...
Страница 230: ...230 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition VB 6 0 Syntax pdlaClient Actions PrintScreen ...
Страница 348: ...348 Agilent 86038B Photonic Dispersion and Loss Analyzer Second Edition ...
Страница 349: ......