CT440
157
B Program Examples
EXFO provides an example on how to use the CT440_lib.dll in C, Python and LabVIEW
programming languages. An example is available for each platform (Win32 and Win64).
CT440_testwrap.c/CT440-PDL_testwrap.c are examples of the DLL use in C language.
It has been edited, compiled and tested using the C++ Builder XE7.
It has been edited, compiled and tested using the IDLE and Python v. 2.7.13 for Win32
and v. 3.4.2 for Win64.
It has been edited and tested using the LabVIEW 2013. The example is provided in
LabVIEW 2013 for both Win32 and Win64 platforms.
The dll wrappers are provided with the LabVIEW example projects.
Example Description
The provided examples perform the following operations:
1.
It initializes the DLL library and verifies if the communication between the computer
and the CT440 has been established.
If the communication is established, the configuration of the CT440 is carried out.
If the communication is not established, the program ends by closing the
communication with the DLL.
2.
The configuration detects the number of available inputs and detectors of the CT440,
the type of CT440 and sets the following:
the sampling resolution of the measurement to be made,
the laser type and laser parameters (e.g. lower and upper wavelengths, speed of
scan, GPIB address etc.),
the wavelength scan range
detector of the CT440 in active state
in case of CT440 with PDL option: the PDL method.
3.
A popup windows prompts the user to connect TLS and patchcord to perform the
detector(s) referencing.
4.
Scans are performed over the wavelength range previously set in the configuration
section of the program, and awaits for the scan to finish.
If an error occurred during this process, the program displays the error or warning
message generated by the CT440.
5.
A popup windows prompts the user to connect the DUT for measurements.
6.
Once the scans are finished, the CT440 retrieves IL and/or PDL data.
The measured wavelength, optical power and corresponding IL data are assigned to
the corresponding output arrays.
Summary of Contents for CT440 Series
Page 1: ...User Guide CT440 Passive Optical Component Tester www EXFO com...
Page 6: ......
Page 30: ......
Page 96: ......
Page 162: ......