/Python-IL-STS

Program to measure Insertion Loss using the Santec's Swept Test System.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

santec

Santec IL STS

Program to measure Insertion Loss using the Santec's Swept Test System.

Overview

The Santec_IL_STS is designed to configure and operate the Santec Swept Test System (STS).
This tool facilitates the measurement of Insertion Loss (IL) using Santec's TSL and MPM series instruments.


Key Features

  • Configure the Santec Swept Test System (Light source: TSL series, Power meter: MPM series, DAQ board)
  • Perform wavelength scans
  • Record reference and measurement scan power
  • Calculate and save Insertion Loss (IL) data
  • Re-use previous scan parameters and reference data

Getting Started

System Requirements

Dependencies

  • pythonnet : Also known as clr, for .NET interoperability
  • pyvisa : For controlling measurement devices
  • nidaqmx : API for NIDAQ driver interaction
  • Santec DLLs: Instrument DLL, STSProcess DLL and FTD2XX_NET DLL.
    Refer to the DLL documentation here: About DLLs

Supported Instruments

The Swept Test System IL PDL Software is designed to function with:

  • TSL-510, TSL-550, TSL-570, TSL-710 and TSL-770 laser series
  • MPM-210 and MPM210H power meter series

Supported Instrument Connections

TSL-510, TSL550 and TSL-710

  • GPIB

TSL-570 and TSL-770

  • GPIB, USB, or LAN

Installation and Execution

Python Installation

Download and Install Python: Version 3.12 recommended.

  • Go to the Python Downloads page.
  • Download the latest version.
  • Follow the installation instructions for your operating system.

Cloning the Repository

To clone the repository, use the following command in your terminal:

git clone https://github.com/santec-corporation/Santec_IL_STS.git

Downloading the Latest Release,

You can download the latest release directly from the Releases page.

Executing the Program

  1. Navigate to the Project Directory,

     cd Santec_IL_STS
  2. Install the dependencies,

     pip install -r docs/requirements.txt
  3. Run the Program,

     python main.py

Optional steps,

  1. Enable logging and log to file,

     python main.py --enable_logging=True
  2. Log to the screen, call the log_to_screen() method in main.py.

Upgrading Dependencies

  • Upgrade pythonnet:

    pip install --upgrade pythonnet
  • Upgrade pyvisa:

    pip install --upgrade pyvisa
  • Upgrade nidaqmx:

    pip install --upgrade nidaqmx

For more information about the project, read the detailed readme here.