Agilent Technologies 86038B User Manual page 146

Photonic dispersion and loss analyzer
Table of Contents

Advertisement

146
xStart = pdlaClient.Results.XStart(eMeasurementType_Gain)
xStop = pdlaClient.Results.XStop(eMeasurementType_Gain)
xStep = (xStop - xStart) / (npoin - 1)
See Table 5-4, "PDLA Enumerations," on page 150 for the other
possible values of the eMeasurementType enumeration.
When this code snippet finishes, the gain data will be in
gainData, and you can calculate the wavelength of any point
from the xStart and xStep variables.
9 Disconnect from the PDLA
The PDLA keeps track of who is connected to it. If one of the
connections quits responding, the PDLA will go through a time-
consuming clean-up process to remove references to the dead
connection. To avoid this, and to avoid Visual Studio getting
confused, it is very important to issue a disconnect statement
for every connect statement, even when debugging. If you are
debugging and decide to halt program execution, you should
either manually run the following statement, or run a function
(such as Form_Close) that executes it:
pdlaClient.Connectivity.Disconnect
In addition, it is necessary to terminate the session when your
program is closing down to allow clean up on both sides:
pdlaClient.Connectivity.TerminateSession
Agilent 86038B Photonic Dispersion and Loss Analyzer, Second Edition

Advertisement

Table of Contents
loading

Table of Contents