Troubleshooting - Keysight N437 Series Programmer's Manual

Lightwave component analyzer
Table of Contents

Advertisement

Troubleshooting

Keysight N437x Series Lightwave Component Analyzer, Programmer's Guide
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.
NOTE
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.
Remote Operation
1
21

Advertisement

Table of Contents
loading

Table of Contents