Agilent 86038B Photonic Dispersion and Loss Analyzer,
Second Edition
187
Starting a C# 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 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
Содержание 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: ......