Keysight N437 Series Programmer's Manual page 17

Lightwave component analyzer
Table of Contents

Advertisement

Remote Operation
1
lcaMeasParams = New Agilent.LCA.RemoteClient.LCAMeasParams()
lcaProperties = New Agilent.LCA.RemoteClient.LCAProperties()
If you also want to use the network analyzer, you have to declare and
create a network analyzer application object.
This is quite different to the LCA. When working with the LCA you are
creating a local LCA Remote Client object. The connection to the remote
LCA server is done with the "Connect" command on the LCA Remote
Client interface.
When using the network analyzer over its COM interface, you are using
DCOM and have to remotely activate the network analyzer interface. For
examples on how this is done in different programming environments, see
the programming examples installed with the LCA Remote Client.
Here we show how this is done in VB.NET:
' Declare the object
Private pnaClient As AgilentPNA835x.Application
...
Public Sub Open(ByVal serverName As String)
' the class-id of the AgilentPNA835x.Application class
Dim clsID As System.Guid = New Guid(
"16D3C697-5F97- 11D2-BC1F-0060B0B52EA7")
Dim srvtype As System.Type =
System.Type.GetTypeFromCLSID(
clsID, serverName, True)
' now we connect to the remote PNA
pnaClient =
CType(System.Activator.CreateInstance(srvtype),
AgilentPNA835x.IApplication9)
End Sub
For further details on programming the network analyzer, please refer to
the relevant network analyzer documentation.
Keysight N437x Series Lightwave Component Analyzer, Programmer's Guide
17

Advertisement

Table of Contents
loading

Table of Contents