PynectDirect SDK Development Kit
PynectDirect
SDK v3.0.1For SPEC-CDS350, SPEC-CMS960 and NIR-F950 fiber spectrometers on 64-bit Windows
PynectDirect SDK for 64-bit Windows development in C, C++, C# and Python 3. It provides a complete Python API supporting device scanning, data acquisition and parameter configuration for the full range of Pynect fiber optic spectrometers, with 55 public APIs and interactive examples.
Software Overview
PynectDirect is the Windows dynamic library SDK for fiber optic spectrometers from Pynect (Shenzhen Pynect Science and Technology Co., Ltd.), for use with the company's fiber optic spectrometers only; it does not support fiber optic spectrometers from other manufacturers.
- Dynamic library:
PynectDirect.dll(the SDK itself) +ftd2xx.dll(FTDI USB driver, must be in the same directory as the SDK) - Header file:
pynect_direct.h(C function declarations, the authoritative source of signatures for all languages) - Language support: C / C++ / C# / Python (standard-library ctypes); any language supporting the C ABI (Rust / Go / Delphi, etc.) can call it directly
- Supported devices: SPEC-CDS350, SPEC-CMS960 (UV-Vis fiber optic spectrometers), NIR-F950 (NIR fiber optic spectrometer)
- Runtime environment: 64-bit Windows 7 / 10 / 11, 64-bit language runtime
The SDK communicates directly with the fiber optic spectrometer via USB and provides 58 public functions covering: device discovery and opening (supports opening multiple devices at once), parameter settings (integration time, averaging count, xenon lamp, trigger), wavelength and spectral data acquisition, device status reading, Flash and firmware configuration, and more.
Main Features
- Device discovery and multi-device management: scan USB devices, open by chip serial number, open up to 4 devices at once, with each device's status independent and unaffected by others.
- Parameter settings: integration time, averaging count, xenon lamp pulse and mode, DAC, level output, external-trigger acquisition.
- Spectrum acquisition: full wavelength/spectral data acquisition; specified bands are truncated on the host side (the device's built-in output range is not modified).
- Device status: reading of temperature, hardware version, serial number, USB status, and wavelength calibration coefficients.
- Flash and firmware configuration: non-volatile parameter read/write (not lost on power-off), write protection, device reset.
For the complete API reference and example programs in C / C++ / C# / Python, please refer to the PynectDirect SDK User Manual.
Changelog
Current version: PynectDirect SDK v3.0.1
Release date: 2026-08-05
Download link: PynectDirect_SDK_v3.0.1.zip
Updates:
- Added C# examples (P/Invoke), which compile and run on both .NET Framework 4.x and .NET 6+
- Added Python examples and a minimal test script
minimal_test.py, using only the standard-library ctypes with no third-party libraries required - Added opening a device by chip serial number (
pynect_direct_open_device_by_chip_serial), suitable for multi-device systems where the index may change - Added current-device switching (
pynect_direct_select_device), supporting opening up to 4 devices at once - Unified error codes and return conventions, and added a complete API reference and error-code chapter
- The SDK delivery package is organized into bin / include / examples / lib, with a 64-bit GCC import library (
libPynectDirect.dll.a)
Known issues:
- 32-bit processes cannot load a 64-bit DLL; make sure the language runtime is 64-bit (in Python you can verify with
python -c "import struct; print(8 * struct.calcsize('P'))") - The device is exclusively accessed; before acquisition please close other software that is using the fiber optic spectrometer
- Firmware configuration (
stored_*series) is retained after power-off and affects future power-on defaults; please use with caution
Historical versions are no longer available for download