Agilent Technologies 86038B User Manual page 142

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

142
There are three things you typically have to do to instantiate a
client:
a Add the reference
For the Active X interface, you need to reference
InstrumentObjects.tlb and RemoteClient.tlb. For .NET, you
need to reference the DLL's directly: InstrumentObjects.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.
b Declare the object.
In Visual Studio, you typically declare the object separately
from instantiating it. For Visual Basic 6.0:
Private WithEvents pdlaClient As RemoteClient.Communicator
c Instantiate the object.
Use the keyword "new" to instantiate the object. For Visual
Basic 6.0:
Set pdlaClient = New RemoteClient.Communicator
4 Establish Connection to the PDLA
The first thing you have to do with your pdlaClient is to
establish a connection to the particular PDLA you want to talk
to. You need to know the network name of the PDLA. Once the
PDLA is on the LAN, you can get the network name from the
front panel by select Help > About. The network name is
displayed near the middle of the panel.
Call pdlaClient.Connectivity.Connect(<insert pdla name>)
Once you have made the connection request, wait for the
connection to complete (approximately 5 seconds). The PDLA
will send you an event when the connection is valid, or you can
query
pdlaClient.Connectivity.IsConnected.
For every call to Connect() there has to be a call to Disconnect()
because the PDLA tracks how many remote users are
connected. You can connect and disconnect as many times as
you like if you want to turn control over to another program or
to the front panel. At the very end of your program execution
you should also terminate your session to clean up the
connection.
(
pdlaClient.Connectivity.TerminateSession
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition
.
)

Advertisement

Table of Contents
loading

Table of Contents