Basic Structure Of An Lca Client Application - Keysight N437 Series Programmer's Manual

Lightwave component analyzer
Table of Contents

Advertisement

1
Remote Operation

Basic structure of an LCA client application

18
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)
now you could call commands which do not require an open session. In
the case of the LCA client, this is the GetLCAProperties command.
lcaClient.GetLCAProperties(lcaProperties)
3
Open a session on the LCA, and check the return value of the Open()
command. A return value False indicates that the Open() command
has failed.
lcaClient.Open()
4
All commands that change the state of the LCA require an active
session opened on the LCA. All these commands have to be enclosed
by Open() and Close() commands.
Commands which do not change the state of the LCA, like reading
properties, only require a passive session on the LCA.
5
When finished with working on the LCA, close the session
lcaClient.Close()
6
Before leaving the application, make sure to call the Disconnect()
command. This prevents unnecessary processing overhead on the LCA,
needed to monitor and close inactive sessions.
lcaClient.Disconnect()
Keysight N437x Series Lightwave Component Analyzer, Programmer's Guide

Advertisement

Table of Contents
loading

Table of Contents