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
Agilent
PNA835x.Application
…
Public Sub Open(ByVal serverName As String)
‘ the class-id of the
Agilent
PNA835x.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),
Agilent
PNA835x.IApplication9)
End Sub
For further details on programming the network analyzer,
please refer to the relevant network analyzer documentation.
Basic structure of an LCA client application
When programming the LCA you have to follow this basic
structure:
1
(optional)
Set a time-out value
lcaClient.SetTimeout(timout_ms)
2 Connect to the LCA server.
lcaClient.Connect(serverName)
Remote Operation
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
19