Install The Remote Client - Agilent Technologies 86038A User Manual

Optical dispersion analyzer
Table of Contents

Advertisement

Recommended Control Sequence
N O TE
Agilent 86038A Optical Dispersion Analyzer, Third Edition

Install the Remote Client

1 Install the .NET framework from Microsoft. Go to www.microsoft.com and
search for 'How to get the Microsoft .NET framework'. Be sure to get the
framework and all the service packs. Make sure that you get the framework, not
the SDK (software development kit.)
2 The 86038A CD shipped with the ODA contains the Remote Client Installation to
install the ODA specific DLL's and the programming examples. Insert the CD into
the CD drive, use Windows Explorer to find ODA Remote Client Installer Folder.
If you scan the GPIB, or change the hardware selection, you will need to
start a new measurement (including the setting of the measurement
parameters, and the making of a reference measurement) before you can
make further measurements.
3 Instantiate odaClient
Before you can interface with the ODA, you have to declare the client
object. The client object is an object written by Agilent and provided to you
as part of the ODA Remote Client install. This object goes out over the LAN
to interface with the ODA, and provides a defined interface for you to use.
To provide better compatibility, the ODA actually has two remote clients -
an Active X component for use with Visual Basic 6.0 and applications such
as Excel, Matlab and LabView, and a .NET interface for use with languages
such as VB.NET and C#.
There are three things you typically have to do to instantiate a client:
• Add the reference
For the Active X interface, you need to reference InstrumentObjects.tlb and Re-
moteClient.tlb. For .NET, you need to reference the DLL's directly: InstrumentO-
bjects.dll and RemoteClient.dll. These files are by default installed in
C:\Program Files\Agilent\Agilent ODA Remote Control.
In Visual Studio, you add references from the Project > Add Reference menu.
• Declare the object.
In Visual Studio, you typically declare the object separately from instantiating it.
For Visual Basic 6.0:
Private WithEvents odaClient As RemoteClient.Communicator
• Instantiate the object.
Use the keyword "new" to instantiate the object. For Visual Basic 6.0:
Set odaClient = New RemoteClient.Communicator
Remote Operation
133

Advertisement

Table of Contents
loading

Table of Contents