No part of this manual may be reproduced
in any form or by any means (including
electronic storage and retrieval or translation into a foreign language) without prior
agreement and written consent from
Keysight Technologies as governed by
United States and international copyright
laws.
Manual Part Number
437XB-90A01
Edition
Edition 3.0, July 2018
Keysight Technologies Deutschland GmbH
Herrenberger Strasse 130,
71034 Böblingen, Germany
Technology Licenses
The hardware and/or software described in
this document are furnished under a
license and may be used or copied only in
accordance with the terms of such license.
U.S. Government Rights
The Software is “commercial computer
software,” as defined by Federal Acquisition
Regulation (“FAR”) 2.101. Pursuant to FAR
12.212 and 27.405-3 and Department of
Defense FAR Supplement
(“DFARS”) 227.7202, the U.S. government
acquires commercial computer software
under the same terms by which the software is customarily provided to the public.
Accordingly, Keysight provides the Software to U.S. government customers under
its standard commercial license, which is
embodied in its End User License Agreement (EULA), a copy of which can be found
at http://www.keysight.com/find/sweula.
The license set forth in the EULA represents
the exclusive authority by which the U.S.
government may use, modify, distribute, or
disclose the Software. The EULA and the
license set forth therein, does not require
or permit, among other things, that Keysight: (1) Furnish technical information
related to commercial computer software
or commercial computer software documentation that is not customarily provided
to the public; or (2) Relinquish to, or otherwise provide, the government rights in
excess of these rights customarily provided
to the public to use, modify, reproduce,
release, perform, display, or disclose commercial computer software or commercial
computer software documentation. No
additional government requirements
beyond those set forth in the EULA shall
apply, except to the extent that those
terms, rights, or licenses are explicitly
required from all providers of commercial
computer software pursuant to the FAR and
the DFARS and are set forth specifically in
writing elsewhere in the EULA. Keysight
shall be under no obligation to update,
revise or otherwise modify the Software.
With respect to any technical data as
defined by FAR 2.101, pursuant to FAR
12.211 and 27.404.2 and DFARS 227.7102,
the U.S. government acquires no greater
than Limited Rights as defined in FAR
27.401 or DFAR 227.7103-5 (c), as applicable in any technical data.
Warranty
THE MATERIAL CONTAINED IN THIS
DOCUMENT IS PROVIDED "AS IS," AND IS
SUBJECT TO BEING CHANGED, WITHOUT
NOTICE, IN FUTURE EDITIONS. FURTHER,
TO THE MAXIMUM EXTENT PERMITTED BY
APPLICABLE LAW, KEYSIGHT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR
IMPLIED WITH REGARD TO THIS MANUAL
AND ANY INFORMATION CONTAINED
HEREIN, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. KEYSIGHT SHALL
NOT BE LIABLE FOR ERRORS OR FOR
INCIDENTAL OR CONSEQUENTIAL
DAMAGES IN CONNECTION WITH THE
FURNISHING, USE, OR PERFORMANCE OF
THIS DOCUMENT OR ANY INFORMATION
CONTAINED HEREIN. SHOULD KEYSIGHT
AND THE USER HAVE A SEPARATE
WRITTEN AGREEMENT WITH WARRANTY
TERMS COVERING THE MATERIAL IN THIS
DOCUMENT THAT CONFLICT WITH THESE
TERMS, THE WARRANTY TERMS IN THE
SEPARATE AGREEMENT WILL CONTROL.
Safety Notices
A CAUTION notice denotes a hazard. It
calls attention to an operating procedure, practice, or the like that, if not
correctly performed or adhered to,
could result in damage to the product
or loss of important data. Do not proceed beyond a CAUTION notice until
the indicated conditions are fully
understood and met.
A WARNING notice denotes a hazard. It
calls attention to an operating procedure, practice, or the like that, if not
correctly performed or adhered to,
could result in personal injury or death.
Do not proceed beyond a WARNING
notice until the indicated conditions
are fully understood and met.
2Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 3
Contents
1 Remote Operation
Overview6
Transferring code from the 8703A/B to the Keysight N437x Series
Lightwave Component Analyzer9
LCA System Configuration10
How to configure the LCA for networking10
How to connect the LCA to your network10
How to change network settings11
Install the LCA Remote Client13
How to use the LCA Remote Client14
Adding references to your project14
Declare and create the required objects16
Basic structure of an LCA client application18
Synchronous vs. Asynchronous Method Calls19
Troubleshooting21
LCA Remote Programming22
LCA remote control DLLs22
Specific Commands23
Interface structure23
Enumeration23
Class LCAMeasParams24
Interface ILCARemoteClient429
General commands29
Measurement commands32
Properties36
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide3
Page 4
Contents
The LCA SCPI Interface39
Overview39
Port Types39
Configuration40
Start/Stop the LCA SCPI Module41
LCA SCPI Commands42
Overview42
Command Tree42
Command Details44
2 Programming Examples
3 Warranty Information
Warranty74
System74
Remove all doubt74
Keysight E-mail Updates74
myKeysight74
Keysight Open75
Phone or Fax76
Keysight Online Information77
4Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 5
Keysight N437x Series Lightwave Component Analyzer
Programmer’s Guide
1Remote Operation
Overview / 6
Transferring code from the 8703A/B to the Keysight N437x Series Lightwave
Component Analyzer
LCA System Configuration / 10
Install the LCA Remote Client / 13
How to use the LCA Remote Client / 14
Synchronous vs. Asynchronous Method Calls / 19
Troubleshooting / 21
LCA Remote Programming / 22
Specific Commands / 23
Interface ILCARemoteClient4 / 29
The LCA SCPI Interface / 39
Start/Stop the LCA SCPI Module / 41
LCA SCPI Commands / 42
Command Details / 44
/ 9
Page 6
1Remote Operation
Overview
This programming guide supports LCA models beginning with the B
generation. These now include: the 43.5GHz to 67 GHz single-mode fiber
models N4373E, N4373D, N4373C and N4373B, the 4.5 GHz single-mode
fiber model N4374B, the 26.5 GHz single-mode fiber models N4375E,
N4375D and N4375B, as well as the 26.5 GHz multi-mode fiber 850 nm
models N4376E, N4376D and N4376B.
This chapter will help you control an LCA from your own computer. The
chapter covers how to write your own applications. The next chapter
explains examples based on VBA/Excel in more detail. Note that
applications for remote control can also be run on the LCA itself, which is
useful for automated measurement procedures.
The LCA is a remoting enabled, Microsoft .NET instrument that can be
controlled across any LAN that can relay an http web page. The provided
remote control client has an Active X interface and a .NET interface, so you
can program the LCA from COM and .NET enabled programming
environments such as C# and VBA.
Beginning with the LCA software version 3.00.03 for Windows XP systems
or 3.01.00 with Window 7, an SCPI interface is also available, which may
be more comfortable for other environments like Labview. The SCPI
interface can be used over either a LAN or USB port.
The LCA uses .NET remoting as the foundation for its external
communications. Remoting is the process of programs or distributed
components interacting across different processes or machines.
In .NET remoting, the server program publishes an object on a network
channel and the client program subscribes to that channel when loading
or connecting to that object. In the case of the LCA, a RemoteObject
object is published to an http channel and the subscribing client program
is the LCA RemoteClient. A Remoting server is embedded in the LCA
Server application.
The LCA RemoteClient is a layer of abstraction, which provides an easy to
use interface with methods to control the LCA. The LCA Remote Client
layer consists of 3 files, named "RemoteClient.dll", "RemoteObjects.dll"
and "RemoteClient.tlb".
These files are installed as part of the the LCA Remote Client installation
package, together with a number of programming examples.
6Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 7
Remote Operation1
Since the LCA interface does not provide any methods to set network
analyzer related parameters or to retrieve measurement data from the
network analyzer, most applications also need to program the network
analyzer. The network analyzer’s native functions can be controlled either
using SCPI or COM. We recommend using the COM interface. This is
reflected in the programming examples.
Figure 1LCA Remoting Architecture
While this chapter assumes you are familiar with your programming
environment, it does not assume familiarity with controlling remote objects
from within that environment.
Examples are provided for VB.NET, C#, VBA and Keysight VEE, which can
be extrapolated to most environments for controlling the LCA. After
installing the LCA Remote Client on your computer, you can find these
examples in the folder:
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide7
Page 8
1Remote Operation
The location on your computer depends on the folder in which you
installed the LCA Remote Client.
The Excel-VBA example pulls data directly from the LCA into Excel. This is
very useful if you are setting up measurements manually, but want to
analyze the results on your own computer.
8Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 9
Remote Operation1
Transferring code from the 8703A/B to the Keysight N437x Series Lightwave Component Analyzer
Tools are available to migrate code from the 8720 network analyzer to the
new PNA network analyzer platform at
www.keysight.com/find/nadisco
The 8703A/B Lightwave Component Analyzers are based on the 8720
network analyzers, so you can use these code conversion tools to migrate
existing code to the N437x Series LCA based on the PNA platform.
Most of the code in a typical application for the 8703 LCA controls the
functionality of the network analyzer. This part of the application can be
migrated with these tools.
The code related to LCA specific functionality has to be migrated by hand.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide9
Page 10
1Remote Operation
NOTE
NOTE
NOTE
LCA System Configuration
How to configure the LCA for networking
How to connect the LCA to your network
Remote programming of the LCA with the .NET interface is only possible if
the LCA is connected to a local area network (LAN) via the built-in LAN
connector. When the LCA is connected to a network, it is also possible to
connect it to network printers and remote servers, with access to shared
folders and files.
Using the SCPI interface, the LCA can also be controlled from a USB port.
The LCA comes configured for DHCP networking, and has a default
machine name. In many cases, connecting the LCA to your LAN is simply a
case of registering the machine name with your IT department.
Do not connect the LCA to a network that is configured to automatically
install software on network devices. Installing or overwriting files on the
LCA computer system may impact the operation of the instrument.
Please contact your network administrator or IT department to find out if
you have this type of network.
The LCA LAN connector supports 10 Base-T and 100 Base-T Ethernet
networks using TCP/IP and other Microsoft supported networking
protocols. The LCA uses Microsoft Windows 7 or XP.
10Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 11
How to change network settings
NOTE
NOTE
NOTE
You can change the LCA network settings as needed so that it connects
properly to your specific network.
Because your network settings are unique to your IT infrastructure,
Keysight Technologies will not be able to assist you with connecting your
instrument to your network. Please contact your network administrator
or IT department for assistance. For more information, refer to the MS
Windows resource kit (available from Microsoft) that is appropriate for
your computer system. You can also refer to the online Help for Windows
(Start > Help).
By default, as the instrument starts up, you are logged on as an
administrator. On N52xxA PNAs, the default administrator name is
"pna-admin", password "pna". On N52xxB PNAs, the default
administrator name is "instrument", password "measure4you".
Keysight only recommends using the LCA application while you are
logged on as an administrator.
Remote Operation1
You can change network settings by using the standard Microsoft
Windows functions.
To view or change the computer machine name
1 On the Task bar, click Start, point to Settings, and then click Control
Panel.
2 Double-click the System icon and click on the Computer Name tab.
From here you can view or change the machine name.
3 When you have finished making changes, restart the instrument.
To configure TCP/IP to use DNS or WINS
If using a protocol other than TCP/IP, please contact your IT department
for assistance.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide11
Page 12
1Remote Operation
NOTE
NOTE
NOTE
NOTE
Editing your instrument’s protocols and file access permissions can
result in unwanted behaviors that are difficult to reverse. Ensure that
your changes are valid!
Please consult with your network administrator concerning advanced
TCP/IP and multi-protocol configuration settings to support your
network.
Please contact your network administrator or IT department if you have
any problems connecting the LCA to your network.
4 On the Task bar, click Start, point to Settings, and then click Network
and Dial-up Connections.
5 Then click Local Area ConnectionProperties.
6 On the General tab (for a local area connection) or the Networking tab
(all other connections), click Internet Protocol (TCP/IP), and then click
Properties. From here, you can make all desired changes.
7 When you have finished making changes, restart the instrument.
For more information, click Start > Help > Index, and search for “DNS” or
“WINS” or “static” or “dynamic.”
To configure TCP/IP for static or dynamic addressing
• To get started, follow the same steps listed above.
12Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 13
Install the LCA Remote Client
NOTE
Remote Operation1
The LCA Remote Client is described in Overview on page -6.
This installation is not for the LCA itself. (Applications using the remote
programming commands can be run on the LCA itself without installing
the remote client package.)
1 1 If not already installed, install the .NET Framework Version 2.0 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 LCA CD shipped with the LCA contains the Remote Client
Installation Package to install the LCA specific DLLs and the
programming examples. The most recent version of the LCA Remote
Client Installation Package is available from the Keysight web site
(www.keysight.com/find/lca).
• Insert the CD into the CD drive, use Windows Explorer to find LCA
Remote Client Installer Folder, or
• Start the downloaded installer.
3 If you want to program the network analyzer via its COM interface you
need to install the PNAProxy. The installation executable
“PNAProxy.exe” can be found on the network analyzer in the folder:
Install the PNA Proxy by running the installation program
“PNAProxy.exe” on your client machine.
When asked to type in the host name or IP address of the remote
network analyzer during installation, you do not need to type in
anything.
You can specify the host name or IP address during program
development or execution.
(on 64-bit systems)
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide13
Page 14
1Remote Operation
How to use the LCA Remote Client
Here you can see the basic steps required to write an LCA client
application.
The code sequences presented here are in VB.NET syntax. For sequences
in other languages like C#, VBA or C++ refer to the different programming
examples. You can find these examples in the “Examples” folder, in the
“Keysight LCA Remote Client” installation folder.
Since most client applications will also control the network analyzer for
setting measurement parameters like start- and stop-frequency and for
reading out the measurement data, we also show the basic steps required
to control the network analyzer using its COM interface over LAN (DCOM).
The network analyzer can also be programmed using its SCPI interface,
but this is not covered here. For details about programming the network
analyzer, please refer to the relevant network analyzer documentation.
Adding references to your project
In .NET and COM projects, you have to add references to the LCA Remote
Client Library and to the PNAProxy type library (the network analyzer
proxy, assuming you also want to program the network analyzer).
The LCA Remote Client implements two different interface technologies.
• In environments which support .NET assemblies, we recommend using
• If your programming environment does not support .NET assemblies,
Here we show how this is done in Microsoft Visual Studio 2005 using the
LCA Remote Client .NET assembly directly. When using the COM interface,
the basic structure is the same.
For the differences, please check the VBA and C++ example projects,
installed with the LCA Remote Client.
1 From the “Project” menu, select “Add Reference”.
2 Switch to the “Browse” tab.
3 Browse to your LCA Remote Client installation folder.
the LCA Remote Client .NET assembly directly.
use the LCA Remote Client over its COM interface.
14Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 15
Remote Operation1
4 Select “RemoteClient.dll” and press OK.
5 If you also want to use the network analyzer COM interface, please
refer to the network analyzer documentation, including:
http://na.support.keysight.com/pna/programming/
In environments which cannot work directly with .NET assemblies, you
have to use the COM interface of the LCA Remote Client.
1 In VBA, open the “Tools” menu and select “References”.
You will see a dialog like the following:
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide15
Page 16
1Remote Operation
2 Select “Keysight Remote Client for the LCA”.
Declare and create the required objects
The LCA Remote Client defines
• three interfaces ILCARemoteClient4, ILCAMeasParams2,
ILCAProperties3 and
• three classes, LCARemoteClient, LCAMeasParams and LCAProperties.
Each of these classes implements the corresponding interface. To be able
to use the LCA Remote Client, you have to create objects from these
classes.
‘ Declare the objects
Private lcaClient As
Agilent.LCA.RemoteClient.LCARemoteClient
Private lcaMeasParams As
Agilent.LCA.RemoteClient.LCAMeasParams
Private lcaProperties As
Agilent.LCA.RemoteClient.LCAProperties
….
‘Create the objects
lcaClient = New Agilent.LCA.RemoteClient.LCARemoteClient()
16Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 17
Remote Operation1
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 Guide17
Page 18
1Remote Operation
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)
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()
18Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 19
Synchronous vs. Asynchronous Method Calls
A traditional remote control application consists of a list of actions that you
send to the instrument, expecting it to execute them in that order and to
tell you when it is done. This makes programming easy - you can do your
whole measurement in a single function or sub-routine.
In this approach you send the actions to the instrument in synchronous
mode. This means that an action you send to the instrument blocks the
program flow of the calling thread until it finishes. The advantage is that
your program structure is very simple. The drawback is that you have to
wait for the instrument to finish the action. For example this could lead to
an unresponsive user interface.
This can be solved using multi threading. Run the measurement sequence
in a new thread while the main thread handles other things like running
the user interface.
A third possibility is to call potentially time consuming actions
asynchronously. The LCA Remote Client lets you call some commands in
asynchronous mode. This means that the call returns immediately, even
before the action on the instrument has finished execution.
In such cases you need an additional method to determine, when an action
finishes. The LCA Remote Client offers two different methods to
accomplish this.
• The first is the property OperationComplete().
This property value is True, when the last asynchronously called
operation on the LCA has finished execution.
Otherwise the property value is False.
• The other method is named WaitForOPC(). This method blocks program
execution on the calling thread until the operation on the instrument
finishes.
Remote Operation1
Here are two short examples in VB.NET syntax, showing the usage of
asynchronous calls:
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide19
Page 20
1Remote Operation
Using the OperationComplete() Property in a loop:
oLCAClient.Init_OO(params, False)
Do
‘ let the application handle events
Application.DoEvents()
System.Threading.Thread.Sleep(200)
While oLCAClient.OperationComplete = False
Using the WaitForOPC() command:
oLCAClient.Init_OO(params, False)
DoMyActionsAfterCallingInit() ‘ doing some other stuff
‘ When we are done with our own stuff,
‘ we need to wait for Init_OO to finish
oLCAClient.WaitForOPC()
20Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 21
Troubleshooting
NOTE
Remote Operation1
During application development you may encounter situations where the
Open() call fails.
This happens when a session on the LCA is already open. If there are no
other applications using the LCA, the most likely reason is that an
application finished without closing its session, for example when running
an application in the debugger and you terminate it by stopping the
debugger.
The LCA and the LCA Remote Client have a heartbeat mechanism to
detect abandoned sessions. The LCA checks for 60 seconds of inactivity. If
nothing happens in this time, the LCA assumes the session has been
abandoned and it closes this session, so that other clients are able to open
a session.
You may want to workaround this behavior during application
development. There are two cases here.
• If your client application halts on a breakpoint, the heartbeat is
suspended, so if your application is suspended for more than 60
seconds, the server closes the session. When you try to continue
execution, you get an error telling you that no session is open.
To keep sessions open, start the LCA server on the network analyzer
with the command-line parameter “NOAUTOCLOSE”.
• If you are running into problems restarting your application because
aborted sessions are still open, call CloseAll() before the Open() call.
We recommend you only use these workarounds during development.
Only use CloseAll() in environments where you are sure no other client
could have a session opened. CloseAll() will close sessions from all the
LCA clients.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide21
Page 22
1Remote Operation
NOTE
LCA Remote Programming
LCA remote control DLLs
The LCA remote programming interface uses Microsoft.NET Remoting
technology. It is controlled by manipulating the properties and methods
exposed by the server object. The list of properties and methods in this
section describe the interface that is available to a programmer wanting to
program the LCA system in other applications.
The LCA RemoteClient DLL provides a communication link with the LCA
server. The DLLs are comprised of a set of properties, and methods that
together provide a basic set of remote LCA capabilities. The two DLLs of
interest are: RemoteClient.dll and RemoteObjects.dll. By default these two
DLLs are installed to:
From version 3.1.4 onwards, remote control DLLs are generally installed
in C:\Program Files (x86)\Agilent\Agilent LCA Remote Control\
Independent from that, they can be used within 32-bit and 64-bit
processes.
22Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 23
Specific Commands
Interface structure
Enumeration
EnumerationDescriptionPossible values
Remote Operation1
There are three classes to control the LCA: the LCAMeasParams, the
LCAProperties and the LCARemoteClient.
• The class LCAMeasParams summarizes all possible parameters of your
measurement.
• The class LCAProperties provides read-only properties, which give you
some information about the network analyzer and the LCA.
• The class LCARemoteClient provides the methods to connect to the
LCA, perform measurements and change hardware settings.
This is the list of enumeration names, with their possible values.
ELaserStateEnumerates the possible laser states, on or off.NotSet
ELaserWvlEnumerates the possible laser wavelengths.NotSet
EMeasModeSpecify if you are doing single ended or differential measurements.
Note: differential measurements require a 4-port network analyzer.
EMeasTypeEnumerates the different LCA measurement typesNotSet
EModBiasOptSpecify how often a modulator bias voltage optimization has to be
performed.
Once: only once when the laser is switched on.
EverySweep: prior to each measurement started by the LCA.
Continuous: the optimization loop runs continuously.
LaserOff
LaserOn
Wvl_850nm
Wvl_1310nm
Wvl_1550nm
NotSet
SingleEnded
Differential
EE
EO
OE
OO
NotSet
Once
EverySweep
Continuous
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide23
Page 24
1Remote Operation
EnumerationDescriptionPossible values
EOpticalInputEnumerates the optical inputs on the optical test head’s front panel.
High power input is comparable to input 2 and standard to input 1.
ERFSwitchEnumerates the RF switches in a switched LCA systemNotSet
ERFSwitchStateEnumerates the possible settings of the RF switchesUnKnown
NotSet
Standard
HighPower
Source
Receiver
Thru
Intern
Class LCAMeasParams
These are common properties of the LCA measurement parameters.
PropertyDescriptionTyp eDefault value
Wavelength_nmSpecify with which laser wavelength the LCA will measure.Enum ELaserWvlNotSet
WavelengthInt_nmSpecify with which laser wavelength the LCA will measure. Use this
method when using ExternalInput and the wavelength does not
match any of the internal wavelengths of the test head.
OpticalPower_dBmSpecify the optical output power of the LCA in dBmDouble0.0
Integer
HighPower_InputIf you are using the high power optical input you have to set the
HighPower_Input property to true.
MeasModeSpecify if you want to do single ended or differential measurementsEnum EMeasModeSingleEnded
ModBiasOptimizationSpecify how often a modulator bias voltage optimization has to be
performed
AdvancedEnable the possibility to overwrite some of the default behavior of the
LCA. In advanced mode you can force the LCA to switch the laser on
or off independently of the measurement type. You also have
additional Optical- and RF- path deembedding possibilities, or can
apply additional deembedding on the receiver and the source side,
independent of the measurement type.
24Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
BooleanFalse
Enum EModBiasOptEverySweep
Boolean – if true,
advanced features
are active
False
Page 25
Remote Operation1
PropertyDescriptionTyp eDefault value
Laser_OnSwitch the intern laser on or off.
Note: The value of this property is only evaluated in advanced mode.
In default mode the laser is switched on or off according to the
measurement type.
SkipUserCalIf set to True, factory calibration data are used, no additional user
calibration is used.
NRUserCalIf set to True, IF-BW is reduced to reduce the noise on the user
calibration data. The default bandwidth reduction factor is defined in
the LCAConfig.xml file.
Imp75_OhmSet to True to measure components with 75 Ohm impedance.BooleanFalse
ForwardRFPower_dBmSets the RF power level for the source port(s). For balanced
measurements (on 4-port network analyzers), Ports 2 and 3 of the
network analyzer are forward for EO measurements and reverse for
OE measurements.
Increasing the forward RF power for OE measurements increases the
optical modulation amplitude.
ReverseRFPower_dBmSets the RF power level for the receiver port(s).
We recommend the factory calibrated default value for the best
results.
To reset to the factory default, leave the text box empty or enter a
value less than -200 dBm.
Boolean – if true,
the
laser is on
BooleanFalse
BooleanFalse
DoubleDouble.NaN
DoubleDouble.NaN
Tru e
ExternalInputSet to True to use a laser source connected to the optional external
input (on the rear of the optical test set.
Set to False to use the laser source in the optical test set.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide25
BooleanFalse
Page 26
1Remote Operation
The following properties control additional optical path deembedding.
PropertyDescriptionTyp eDefault value
UseOpticalConnDataWith this property you could switch the whole optical path
SrcAttOpt_dBSpecify the optical attenuation on the source path in dB. In default
RcvAttOpt_dBSpecify the optical attenuation on the receiver path in dB In default
SrcRefIdxSpecify the refractive index of the source path in dB.
RcvRefIdxSpecify the refractive index of the receiver path in dB.
SrcLengthOpt_mSpecify the geometrical length of the source path in m.
RcvLengthOpt_mSpecify the geometrical length of the receiver path in m.
UseOpticalS2PFileSpecify if you want to describe the optical paths by the parameters
deembedding on or off.
mode only evaluated for O/E and O/O measurements.
mode only evaluated for E/O and O/O measurements.
In default mode only evaluated for O/E and O/O measurements.
In default mode only evaluated for E/O and O/O measurements.
In default mode only evaluated for O/E and O/O measurements.
In default mode only evaluated for E/O and O/O measurements.
above or by transmission data stored in a s2p file. Only the S21
transmission data is used.
BooleanFalse
Double0.0
Double0.0
Double0.0
Double0.0
Double0.0
Double0.0
BooleanFalse
OptRcvFileThe name of the s2p file to use for additional adaptor deembedding
on the receiver side
In default mode only evaluated for E/O and O/O measurements.
OptSrcFileThe name of the s2p file to use for additional adaptor deembedding
on the source side.
In default mode only evaluated for O/E and O/O measurements.
26Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
StringEmpty string
StringEmpty string
Page 27
Remote Operation1
PropertyDescriptionTyp eDefault value
UseElAdaptorWith this property you could switch the whole electrical path
deembedding on or off.
ElRcv1FileThe name of the s2p file to use for electrical adaptor deembedding.
This property has to be used for receiver side deembedding in
single ended measurements or for the receiver port with the lower
number in differential measurements.
ElRcv2FileThe name of the s2p file to use for electrical adaptor deembedding.
This property has to be used only for the receiver port with the
higher number in differential measurements.
PropertyDescriptionTyp eDefault value
ElSrc1FileThe name of the s2p file to use for electrical adaptor deembedding.
This property has to be used for source side deembedding in single
ended measurements or for the source port with the lower number
in differential measurements.
BooleanFalse
StringEmpty string
StringEmpty string
StringEmpty string
ElSrc2FileThe name of the s2p file to use for electrical adaptor deembedding.
This property has to be used only fo r the source port with the higher
number in differential measurements.
CalSetUserCalName a Calset on the network analyzer which has to be used for the
user calibration measurement.
If an empty string is passed, the current calset is used. If “NONE” is
passed, no calset is applied for the user calibration measurement.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide27
StringEmpty string
StringEmpty string
Page 28
1Remote Operation
NOTE
PropertyDescriptionTyp eDefault value
NWAModelThe model number of the network analyzerString
NumNWAPortsThe number of ports of the network analyzerInteger
NumOpticalInputsThe number of optical inputs of the LCA test headInteger
ProductNumberThe product number of the LCA systemString
SerialNumberThe serial number of the LCA systemString
Class LCAProperties
These properties are all read-only.
SwitchedArchitectureTrue: LCA test head has a switched architecture, False: non
SoftwareVersionThe version of the LCA server softwareString
SourceWvlAn array showing all available wavelengths of the LCA test
MaxPower_dBmAn array holding the maximum optical output power values
MinPower_dBmAn array holding the minimum optical output power values
HasExternalInput True: LCA test head has external laser input
switched architecture
head
in dB. These values are correlated to the wavelength values
in “SourceWvl” at the same position.
in dB. These values are correlated to the wavelength values
in “SourceWvl” at the same position.
False: LCA test head has no external input
Boolean
array ELaserWvl
array double
array double
Boolean
28Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 29
Interface ILCARemoteClient4
General commands
ParametersByVal server As String
Return valueNo return value.
ParametersNo parameters.
Return valueNo return value.
Remote Operation1
Sub Connect (ByVal server As String)
Create a connection to an LCA server application.
An LCA client application can only have one open connection to an LCA
server at any time.
The LCA server could handle several open connections concurrently.
Host name or IP address of the network analyzer where the LCA server is
running.
Sub Disconnect ()
Closes the connection to the LCA server application.
Function IsConnected() As Boolean
Checks if a connection to an LCA server already exists.
ParametersNo parameters.
Return valueBoolean
True: a connection to an LCA server exists False: no connection exists.
False: no connection exists
Function Open () As Boolean
Opens an active session on the LCA.
All commands that change the state of the LCA require an active session.
The LCA server allows only one active session at any time.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide29
Page 30
1Remote Operation
All actions allowed in a passive session are also allowed in an active
session.
ParametersNo parameters.
Return value
BooleanTrue: A session has been opened
False: Opening a session failed
Function OpenPassive () As Boolean
Opens an passive session on the LCA.
All commands that just read settings from the LCA require at least an open
passive session.
Several passive sessions could be opened concurrently.
ParametersNo parameters.
Return valueBoolean
True: A session has been opened
ParametersNo parameters.
Return valueNo return value.
ParametersNo parameters.
Return valueNo return value.
30Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
False: Opening a session failed
Sub Close ()
Closes active session on the LCA.
Sub ClosePassive ()
Closes passive session on the LCA.
Sub CloseAll ()
Closes the active sessions on the LCA. Any measurements that are
currently running are aborted.
Page 31
This can be useful if an abandoned, open session prevents a successful
Open() command. However, be careful not to disturb any other connected
client applications.
The LCA automatically closes abandoned sessions after some time (>60s)
of inactivity.
ParametersNo parameters.
Return valueNo return value.
Sub ResetLCASystem ()
Restarts the LCA server. Open sessions are closed and running
measurements are aborted.
A restart is necessary, when the network analyzer application has been
restarted or when the LCA testhead has been switched off while the LCA
server was running.
ParametersNo parameters.
Return valueNo return value.
Remote Operation1
Sub GetLCAProperties
(ByVal properties As RemoteClient.ILCAProperties3)
Read out the properties of the LCA system.
ParametersByVal properties As RemoteClient.ILCAProperties3
The properties are written to this LCAProperties object
Return valueNo return value.
Sub SetTimeout (ByVal timeout_ms As Integer)
Set the timeout value for the .NET remoting.
A value of 0 or -1 indicates an infinite timeout period, which is also the
default value.
The timeout value is set in the .NET remoting layer during execution of the
“Connect” command. If you want to set a timeout value, you have to do
this before calling the “Connect” command.
If you are using the LCA Remote Client .NET assembly directly, you can
also specify the timeout value in the LCARemoteClient constructor.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide31
Page 32
1Remote Operation
When using the COM interface you could only use the default constructor,
so you have to use this command to specify a nondefault timeout value.
ParametersByVal timeout_ms As Integer
An integer that specifies the number of milliseconds to wait before a .NET
remoting request times out
Return valueNo return value.
Measurement commands
Sub Init_EE
(ByVal parameters As RemoteClient.ILCAMeasParams2, ByVal sync As
Boolean)
Initializes the LCA for a EE measurement.
Parameters:ByVal parameters As RemoteClient.ILCAMeasParams2
The measurement parameters for initialization Optional ByVal sync As
Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately.
For synchronization use the synchronization methods WaitForOPC or
OperationComplete
Return valueNo return value.
Sub Init_EO (ByVal parameters As RemoteClient.ILCAMeasParams2,
ByVal sync As Boolean)
Initializes the LCA for an EO measurement.
ParametersByVal parameters As RemoteClient.ILCAMeasParams2
The measurement parameters for initialization Optional ByVal sync As
Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately. For synchronization use the
synchronization methods WaitForOPC or OperationComplete
Return valueNo return value.
32Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 33
Sub Init_OE (ByVal parameters As RemoteClient.ILCAMeasParams2,
ByVal sync As Boolean)
Initializes the LCA for an OE measurement.
ParametersByVal parameters As RemoteClient.ILCAMeasParams2
The measurement parameters for initialization Optional ByVal sync As
Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately.
For synchronization use the synchronization methods WaitForOPC or
OperationComplete
Return valueNo return value.
Sub Init_OO (ByVal parameters As RemoteClient.ILCAMeasParams2,
ByVal sync As Boolean)
Initializes the LCA for an OO measurement.
ParametersByVal parameters As RemoteClient.ILCAMeasParams2
Remote Operation1
The measurement parameters for initialization Optional ByVal sync As
Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately.
For synchronization use the synchronization methods WaitForOPC or
OperationComplete
Return valueNo return value.
Sub LoadOOTxCalData (ByVal parameters As
RemoteClient.ILCAMeasParams2, ByVal filename As String, ByVal sync
As Boolean)
Use this command instead of Init_OE if you want the LCA to load and use
previously saved user calibration data.
The loaded user calibration data will be used by the LCA until the next
initialization command is called.
See alsoSaveUserCalData
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide33
Page 34
1Remote Operation
NOTE
ParametersByVal parameters As RemoteClient.ILCAMeasParams2
The measurement parameters for initialization ByVal filename As String
The name of the file containing the user calibration data Optional ByVal
sync As Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately.
For synchronization use the synchronization methods WaitForOPC or
OperationComplete
Return valueNo return value.
Sub LoadOETxCalData (ByVal parameters As
RemoteClient.ILCAMeasParams2, ByVal filename As String, ByVal sync
As Boolean)
Use this command instead of Init_OE if you want the LCA to load and use
previously saved user calibration data.
The loaded user calibration data will be used by the LCA until the next
initialization command is called.
See alsoSaveUserCalData
ParametersByVal parameters As RemoteClient.ILCAMeasParams2
The measurement parameters for initialization ByVal filename As String
The name of the file containing the user calibration data Optional ByVal
sync As Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately. For synchronization use the
synchronization methods WaitForOPC or OperationComplete
Return valueNo return value.
Sub Measure (ByVal continuous As Boolean, ByVal sync As Boolean)
Be careful when calling a continuous measurement in synchronous
mode. Since the synchronous call blocks the program execution of the
calling thread, you can't stop this measurement from the calling thread.
It can only be stopped from another thread.
34Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 35
Triggers a measurement on the LCA.
If you call a continuous measurement while another measurement is
running, the original measurement is stopped without starting a new
measurement.
If you call a single measurement while another measurement is running,
this measurement is stopped and a new single measurement is started.
It requires that one of the initialization routines above has been called. If
no measurement type has been initialized, an “InvalidOperationException”
is thrown. The type of the measurement is the one initialized by the last
“Init_XX” or “LoadXXTxCalData” call.
You should trigger your DUT measurements with this routine, as it takes
care of optical DC power dependent deembedding and modulator bias
voltage optimization.
For synchronization use the synchronization methods WaitForOPC or
OperationComplete.
ParametersByVal continuous As Boolean
True: measurements are done continuously
False (default): a single measurement is triggered
Optional ByVal sync As Boolean
True (default): the call is blocked until initialization is complete
False: the call returns immediately.
Remote Operation1
Return valueNo return value.
Sub SaveUserCalData (ByVal filename As String)
Save the measured user calibration data into a s2p-file.
If no user calibration data has been measured during last OE or OO
initialization, default values are stored.
This command is only allowed when OE or OO measurement mode is
inititalized.
ParametersByVal filename As String
The filename, where the data should be stored.
Return valueNo return value.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide35
Page 36
1Remote Operation
Sub Abort ()
Aborts a currently running measurement or initialization.
ParametersNo parameters.
Return valueNo return value.
Sub WaitForOPC ()
Waits until the last asynchronously called command has finished
execution. Exceptions thrown during execution of an asynchronously
called command could be caught when calling WaitForOPC() or
OperationComplete().
Se also propertyOperationComplete()
ParametersNo parameters.
Return valueNo return value.
36Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Properties
Reading these properties requires only a passive session, while setting
these properties requires an active session.
LaserWvl_nm As RemoteClient.ELaserWvl
Get or set the current wavelength of the LCA optical output in nanometers.
ParametersNo parameters.
LaserPower_dBm As Double
Get or set the current power of the LCA optical output in dBm
ParametersNo parameters.
LaserState As RemoteClient.ELaserState
Get or set the current state of the LCA optical output
ParametersNo parameters.
Page 37
Remote Operation1
OpticalInput As RemoteClient.EOpticalInput
Get or set the current optical input of the LCA testhead
ParametersNo parameters.
RFSwitchState
(ByVal RFSwitch As RemoteClient.ERFSwitch)
Setting the RF switches in the LCA testhead. With a non switched LCA
system, setting this property has no effect. Trying to set this property to
UnKnown, is ignored. Reading this property from a non switched system
will always return UnKnown.
ParametersByVak RFSwich As RemoteClient.ERFSwitch The switch you want to read
from or you want to set.
RFPowerFwd_dBm As Double
Gets or sets the RF power on the network analyzer ports for forward
measurements. To set this property back to the factory defined default
value, set it to Double.NaN or a value < - 200dBm.
ParametersNo parameters.
RFPowerRev_dBm As Double
Gets or sets the RF power on the network analyzer ports for reverse
measurements. To set this property back to the factory defined default
value, set it to Double.NaN or a value < - 200dBm.
ParametersNo parameters.
ReadOnly OpticalDCPower_dBm As Double
Get the actual optical DC power, measured by the optical powermeter
built into the LCA testhead
ParametersNo parameters.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide37
Page 38
1Remote Operation
ReadOnly LCAProperties As RemoteClient.ILCAProperties3
See the command GetLCAProperties
ParametersNo parameters.
ReadOnly CurrentMeasType As RemoteClient.EMeasType
Get the measurement type which has been initialized by the last call to one
of the Init_XX commands or by one of the LoadXXTxCalData commands.
ParametersNo parameters.
ReadOnly OperationComplete As Boolean
Get the operation status of the last asynchronously called command.
Exceptions thrown during execution of an asynchronously called command
could be caught when calling WaitForOPC() or OperationComplete().
ParametersNo parameters.
38Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 39
The LCA SCPI Interface
Overview
Port Types
Remote Operation1
The LCA instrument is a combined instrument. It is a network analyzer
with additional hardware and software to become the LCA. The network
analyzer already offers a SCPI interface on different ports. Now the new
LCA SCPI interface extends the existing LCA application. It is implemented
with the Keysight Translator Framework and the LCA Remote Server. Each
SCPI command is intercepted and linked to an LCA Remote Interface
method. The LCA SCPI interface is not completely IEEE compliant. It only
implements the most necessary common commands besides the
application specific commands.
The LCA SCPI interface is available either on a network socket or on the
device USB port. Other ports like GPIB are not supported. You may select
and configure one of the available types. Using both ports in parallel is not
supported.
Socket Port
The LCA SCPI talker/listener runs on port 5026. The network analyzer SCPI
interface runs on port 5025. You may run both SCPI interfaces for the
LCA and the network analyzer application in parallel, since they take
different socket ports.
USB Port
The LCA system is an integrated system. The system has only one USB
device port which can be used to control the application from a remote PC.
Therefore you can use the USB port to control either the network analyzer
via SCPI or the LCA application via SCPI. You can’t control both
applications over the USB port at the same time.
You always have to run the network analyzer application to get the LCA
functionality. Therefore if you only run the network analyzer and NOT the
LCA SCPI interface, the USB device port is taken by the network analyzer
SCPI talker/listener. When you first connect your PC with a USB cable to
the LCA (combined instrument), you get the Network Analyzer
identification string if you send the *IDN? query.
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide39
Page 40
1Remote Operation
If you start the LCA SCPI interface and configure it to run on the USB
device port, you will get the identification string for the LCA instrument
when you send the *IDN? SCPI query.
However, if you run the LCA SCPI interface on the socket port and have
connected your PC via USB with the LCA instrument, the network analyzer
identification string will still be returned.
After a system reboot, the USB device port is always taken by the network
analyzer SCPI interface by default. The LCA SCPI interface has to be
started manually. If you run the LCA SCPI interface on the USB device port
and want to switch to the socket port, you have to stop the LCA SCPI
interface first, then change the configuration to socket port and save it.
This action will restart the network analyzer application automatically, to
reclaim the USB device port for the network analyzer. Now the LCA SCPI
interface can be restarted with the new configuration.
GPIB port
The LCA SCPI interface doesn’t support the GPIB port. However you may
control the network analyzer application through SCPI over the GPIB port.
This gives you the possibility to control the instrument independent of LAN
by controlling the LCA application through SCPI over USB and the network
analyzer application through SCPI over GPIB.
Configuration
Select the communication port for your LCA SCPI interface, either the LAN
socket port 5026 or the USB device port. Run the
Agilent.LCA.SCPI.Config.exe program or click on the LCA SCPI
Configuration shortcut on the network analyzer macro list to select the
preferred port. The LCA SCPI talker/listener runs on the socket port 5026
by default. The port is not selectable to avoid conflicts with the network
analyzer SCPI interface, which runs on port 5025.
For support purposes, you may turn the logging on or off. The logging
stores all program outputs into a file. Note: it may fill up your hard disk if
you run the SCPI interface in logging mode for a long time.
When done with configuration, click the “Save Config” button to store all
settings. After saving the settings, the LCA SCPI module will adopt the
modified configuration when you click on the “Start SCPI” button.
40Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 41
Start/Stop the LCA SCPI Module
All LCA modules require the network analyzer application. It should always
start after a system reboot automatically. If the network analyzer is not
running, please start it manually.
Like all other LCA modules, the LCA SCPI module does not start
automatically. You have to start it manually. Use the
Agilent.LCA.SCPI.Conf.exe program to start or stop the LCA SCPI
interface. To launch this program, you may either use the LCA SCPI link in
the network analyzer GUI macro list under utilities, or the shortcut LCA
SCPI Interface on the desktop or in the program menu.
The LCA SCPI interface is implemented on the LCA Remote Interface
methods and the Agilent Translator Framework. Therefore the LCA Server
starts automatically when you start the LCA SCPI interface. When you click
on the “Start SCPI” button on the SCPI configuration form, the Agilent
Translator Framework starts and loads the Agilent.LCA.SCPI.Module. The
LCA Server cannot handle more than one session. Therefor you can run
either the LCA Measurement Setup application or the LCA SCPI
interface, but not both in parallel. This is the same for the LCA Remote
Client. It also connects to the LCA Server and therefore the SCPI interface
cannot run at the same time.
Remote Operation1
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide41
Page 42
1Remote Operation
LCA SCPI Commands
Overview
Command Tree
The LCA SCPI commands do not fulfill the IEEE standard. They just offer a
simple way to control the LCA application on a LAN dependent socket port
or on a USB port.
Except for the *IDN? and :SYST:ERR? Commands, there is always a direct
relation between a SCPI command and a method or property of the
LCA.Net Remote Interface.
DescriptionSave the measured user calibration data into a s2p-file. parameters:
“<string>” path and file name enclosed in double quotes response: none
C#(method) SaveUserCalData()
Example:MEAS:CALD:SAVE “c:\temp\test.s2p”
Command:MEASurement:CURRent:TYPE?
Syntax:MEASurement:CURRent:TYPE?
DescriptionGet the measurement type that has been initialized by the last call to one
of the :MEAS:INIT XX commands or by one of the.:LOAD:XX: commands.
Parametersnone
Response<string> NotSet | EE | EO | OE | OO
C#(method) CurrentMeasType()
Example:MEAS:CURR:TYPE? -> OO
Command:MEASurement:INITialize:EE
Syntax:MEASurement:INITialize:EE
DescriptionInitializes the LCA for an EE measurement
Parametersnone
Responsenone
C#(method) Init_EE()
Example:MEAS:INIT:EE
Command:MEASurement:INITialize:EO
Syntax:MEASurement:INITialize:EO
DescriptionInitializes the LCA for an EO measurement. parameters:none
Responsenone
C#(method) Init_EO()
Example:MEAS:INIT:EO
46Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 47
Remote Operation1
Command:MEASurement:INITialize:OE
Syntax:MEASurement:INITialize:OE
DescriptionInitializes the LCA for an OE measurement parameters:none
Responsenone
C#(method) Init_OE
Example:MEAS:INIT:OE
Command:MEASurement:INITialize:OO
Syntax:MEASurement:INITialize:OO
DescriptionInitializes the LCA for an OO measurement parameters:none
Responsenone
C#(method) Init_OO()
Example:MEAS:INIT:OO
Command:MEASurement:STARt
SyntaxMEASurement:STARt<wsp>[SINGle|CONTinuous]
DescriptionTriggers a measurement on the LCA. If you call a continuous measurement
while another measurement is running, the original measurement is
stopped without starting a new measurement
Parameters<string> SINGle | CONTinuous none
Responsenone
C#(method) Measure()
Example:MEAS:STAR CONT
Command:NWA:MODel?
Syntax:NWA:MODel?
DescriptionThe model number of the network analyzer
Parametersnone
Responsestring
C#(property) NWAModel
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide47
Page 48
1Remote Operation
Example:NWA:MOD? -> N5245A
Command:NWA:PORT:NUMBer?
Syntax:NWA:PORT:NUMBer?
DescriptionThe number of network analyzer ports
Parametersnone
Responseinteger
C#(property) NumNWAPorts
Example:NWA:PORT:NUMBer? -> 4
Command*OPC?
Syntax*OPC?
DescriptionRetrieves the operation complete state
Parametersnone
Response<string> 0 | 1
C#(method) OperationComplete()
Example*OPC? -> 1
Command:PARameter:ADVAnced:MODE?
Syntax:PARameter:ADVAnced:MODE?
DescriptionReturns 1 if advanced mode is enabled. In advanced mode you can force
the LCA to switch the laser on or off, independent of the measurement
type. You also have additional optical- and RF- path de-embedding
possibilities, or can apply additional de- embedding on the receiver and
the source side, independent of the measurement type.
Parametersnone
ResponseC#
<string> 0 | 1 (property) Advanced
Example:PAR:ADVA:MODE? -> 0
48Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 49
Remote Operation1
Command:PARameter:ADVAnced:MODE
Syntax:PARameter:ADVAnced:MODE<wsp>ON | OFF | 1 | 0
DescriptionEnables or disables advance mode, which allows changing some default
settings. In advanced mode you can force the LCA to switch the laser on or
off, independent of the measurement type. You also have additional
optical- and RF-path de-embedding possibilities, or can apply additional
de-embedding on the receiver and the source side, independent of the
measurement type.
Parameters<string> ON | OFF | 1 | 0 none
Responsenone
C#(property) Advanced
Example:PAR:ADVA:MODE ON
Command:PARameter:ELECtrical:PATH:DEEMbedding?
Syntax:PARameter:ELECtrical:PATH:DEEMbedding?
DescriptionRetrieves the property which shows whether the whole electrical path
DescriptionGets the name of the s2p file to use for electrical adaptor de-embedding.
File index 1 has to be used for receiver side de-embedding in single-ended
measurements or for the receiver port with the lower number in differential
measurements. Index 2 has to be used only for the receiver port with the
higher number in differential measurements
DescriptionSets the name of the s2p file to use for electrical adaptor de-embedding.
File index 1 has to be used for receiver side de-embedding in single-ended
measurements or for the receiver port with the lower number in differential
measurements. Index 2 has to be used only for the receiver port with the
higher number in differential measurements
DescriptionGets the name of the s2p file to use for electrical adaptor de-embedding.
This property has to be used with file index 1 for source side deembedding in single-ended measurements or for the source port with the
lower number in differential measurements. Index 2 is the file for the
source port with the higher number in differential measurements.
DescriptionSets the name of the s2p file to use for electrical adaptor de- embedding.
This property has to be used with file index 1 for source side
de-embedding in single-ended measurements or for the source port with
the lower number in differential measurements. Index 2 is the file for the
source port with the higher number in differential measurements
Parameters“<string>” path and file name
Responsenone
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide51
DescriptionSwitches the internal laser on or off. Note: The value of this property is only
evaluated in advanced mode. In default mode the laser is switched on or
off according to the measurement type
Parameters<string> ON | 1 to switch the laser on, OFF | 0 to switch the laser off
Responsenone
C#(property) Laser_On
Example:PAR:SOUR:POW:STAT ON
60Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 61
Remote Operation1
Command:PARameter:SOURce:PATH:LENGth?
Syntax:PARameter:SOURce:PATH:LENGth?
DescriptionRetrieves the geometrical length of the source path in m . In default mode
only evaluated for O/E and O/O measurements
Parametersnone
Response<double> the path length in meter
C#SrcLengthOpt_m
Example:PAR:SOUR:PATH:LENG? -> 0.27
Command:PARameter:SOURce:PATH:LENGth
Syntax:PARameter:SOURce:PATH:LENGth<wsp><length>
DescriptionSpecifies the geometrical length of the source path in m. In default mode
only evaluated for O/E and O/O measurements
Parameterslength <double> the path length value, default unit is meter.
Responsenone
C#SrcLengthOpt_m
Example:PAR:SOUR:PATH:LENG 0.42
Command:PARameter:SOURce:REFR:INDex?
Syntax:PARameter:SOURce:REFR:INDex?
DescriptionRetrieves the refractive index of the source path in dB. In default mode
only evaluated for O/E and O/O measurements.
Parametersnone
Response<double> the refractive index
C#(property) SrcRefIdx
Example:PAR:SOUR:REFR:IND? -> 0
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide61
Page 62
1Remote Operation
Command:PARameter:SOURce:REFR:INDex
Syntax:PARameter:SOURce:REFR:INDex<wsp><index>
DescriptionSpecifies the refractive index of the source path in dB. In default mode only
evaluated for O/E and O/O measurements.
Parametersindex <double> the refractive index value in dB
Responsenone
C#(property) SrcRefIdx
Example:PAR:SOUR:REFR:IND 0.13
Command:PARameter:USER:CALIbration:CALSet?
Syntax:PARameter:USER:CALIbration:CALSet?
DescriptionRetrieves the name of a Calset on the network analyzer to be used for the
user calibration measurement. If an empty string is returned, the current
Calset is used. If “NONE” is returned, no Calset is applied for the user
calibration measurement.
Parametersnone
62Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
DescriptionSpecifies the name of a Calset on the network analyzer to be used for the
user calibration measurement. If an empty string is passed, the current
Calset is used. If “NONE” is passed, no Calset is applied for the user
calibration measurement.
ParametersNONE| <string> |No argument, None or the path and file name surrounded
by double quotes.
Responsenone
C#(property) CalSetUserCal
Example:PAR:USER:CAL:CALS “c:\temp\calset1.s2p”
Page 63
Remote Operation1
Command:PARameter:WAVelength?
Syntax:PARameter:WAVelength?
DescriptionReturns the laser wavelength set on the LCA.
Parametersnone
Response<string> The wavelength and unit as a string.
C#(property) Wavelength_nm
Example:PAR:WAV? -> Wvl_1550nm
Command:PARameter:WAVelength
Syntax:PARameter:WAVelength
:PARameterWAVelength<wsp>850|1310|1550
DescriptionSpecifies with which laser wavelength the LCA will measure parameters:
<string> 850 | 1310 | 1550
Responsenone
C#(property) Wavelength_nm
Example:PAR:WAV 1550
Command:RF:POWer:FWD?
Syntax:RF:POWer:FWD?
DescriptionGets the RF power on the network analyzer ports for forward
measurements
Parametersnone
Response<double> forward power value in dBm
C#(property) RFPowerFwd_dBm
Example:RF:POWer:FWD? -> -8
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide63
Page 64
1Remote Operation
Command:RF:POWer:FWD
Syntax:RF:POWer:FWD<wsp><power>
DescriptionSets the RF power on the network analyzer ports for forward
measurements
Parameterspower <double> forward power value in dBm
Responsenone
C#(property) RFPowerFwd_dBm
Example:RF:POWer:FWD -1
Command:RF:POWer:REVerse?
Syntax:RF:POWer:REVerse?
DescriptionGets the RF power on the network analyzer ports for reverse
measurements.
Parametersnone
Response<double> RF reverse power value in dBm.
Command:RF:POWer:REVerse
DescriptionSets the RF power on the network analyzer ports for reverse
Parameterspower <double> RF reverse power value in dBm.
64Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
C#(property) RFPowerRev_dBm
Example:RF:POW:REV? -> -8
Syntax:RF:POWer:REVerse<wsp><power>
measurements. To set this property back to the factory defined default
value, set it to Double.NaN or a value < -200dBm.
Responsenone
C#(property) RFPowerRev_dBm
Example:RF:POW:REV -4
Page 65
Remote Operation1
Command:RF:SWITch:STATe?
Syntax:RF:SWITch:STATe?
DescriptionRetrieves the RF switch settings in the LCA test-head. With a non-
switched LCA system, setting this property has no effect.. Reading this
property from a non-switched system will always return Unknown.
DescriptionSetting the RF switches in the LCA testhead. With a non switched LCA
system, setting this property has no effect. Trying to set this property to
UnKnown, is ignored. Setting this property for a non switched system will
stay UnKnown.
The location on your computer depends on the folder in which you
installed the LCA Remote Client.
The COM example is written in C++. There are two .NET examples, one
written in C# and another one written in Visual Basic. All three examples
perform the same measurement steps.
A number of older, unsupported programming examples in VEE,
VBA/Excel, VisualBasic 6.0 can be found in the folder:
Keysight N437x Series Lightwave Component Analyzer
Programmer’s Guide
3Warranty Information
Warranty / 74
Phone or Fax / 76
Keysight Online Information / 77
Page 74
3Warranty Information
Warranty
All system warranties and support agreements are dependent upon the
integrity of the Keysight Lightwave Component Analyzer. Any modification
of the system software or hardware will terminate any obligation that
Keysight Technologies may have to the purchaser. Please contact your
local Keysight field engineer before embarking in any changes to the
system.
To check the warranty of your product, visit the following web page:
www.keysight.com/find/warranty
System
In addition to the warranty, extended warranty periods, on-site
troubleshooting, reduced response times and increased coverage hours
can be negotiated under a separate support agreement and will be
charged at an extra cost.
Remove all doubt
Keysight offers a wide range of additional expert test and measurement
services for your equipment, including initial start- up assistance onsite
education and training, as well as design, system integration, and project
management.
Our repair and calibration services will get your equipment back to you,
performing like new, when promised. You will get full value out of your
Keysight equipment throughout its lifetime. Your equipment will be
serviced by Keysight- trained technicians using the latest factory
calibration procedures, automated repair diagnostics and genuine parts.
You will always have the utmost confidence in your measurements.For
more information on repair and calibration services, go to
www.keysight.com/find/removealldoubt
Keysight E-mail Updates
Get the latest information on the products and applications you select.
www.keysight.com/find/emailupdates
myKeysight
Quickly choose and use your test equipment solutions with confidence.
www.keysight.com/find/mykeysight
74Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide
Page 75
Keysight Open
Warranty Information3
Keysight Open simplifies the process of connecting and programming test
systems to help engineers design, validate and manufacture electronic
products. Keysight offers open connectivity for a broad range of system
ready instruments, open industry software, PC-standard I/O and global
support, which are combined to more easily integrate test system
development.
www.keysight.com/find/open
Keysight N437x Series Lightwave Component Analyzer, Programmer’s Guide75