Agilent Technologies 86038A User Manual page 155

Optical dispersion analyzer
Table of Contents

Advertisement

Example 1: Simple Application for Controlling the ODA
Agilent 86038A Optical Dispersion Analyzer, Third Edition
Starting a VB 6.0 ODA Application
Install Software
Refer to "Recommended Control Sequence" on page
Application Shell
The following steps show you how to build a simple shell to connect to the
ODA.
1 Run Visual Basic 6.0.
2 Double click on Standard Exe to open a new project. Use the default name,
Project1.
This creates a project with a blank frame. To the left of the window is a
tool bar with all the different controls you can put on the frame. Hovering
the mouse over the icon will give a short description.
3 Click the Label icon (icon with capital "A"), then click and drag to create a box in
the upper left of Form 1. On the right side of the window, there should be a dialog
titled Properties. (If not, click View > Properties Window.) In the Properties
dialog, scroll down to choose Caption and then type ODA Name. Press Enter and
notice that ODA Name appears on Form 1.
4 From the tool bar, click the Text Box icon, then click and drag to create a box in
the upper right of Form 1. In the Properties dialog, click Name and type
tbOdaName. Click on Text and type the network name of your ODA as the default
text. (Refer to the ODA Help > About to find your ODA network name.)
5 Click Project > References. This brings up a dialog that shows the selected
DLL's that you can use in this project. Two DLL's are used to enable
communication with the ODA.
6 Click Browse, then navigate to
C:\Program Files\Agilent\Agilent ODA Remote Control
to add InstrumentObjects to the list, then click Open.
7 Click Browse again and navigate to
8 Select Open, which takes you back to the References dialog.
Note that the name of the Remote Client might appear as a long string
"This is the RemoteClient for the Optical Dispersion Analyzer." Click
close the References dialog.
130.
. Click on
InstrumentObjects.tlb
in the same directory.
RemoteClient.tlb
Remote Operation
to
OK
155

Advertisement

Table of Contents
loading

Table of Contents