How dewetron/trion-sdk works
Project type and purpose
• This is a multi-language SDK and example suite for accessing DEWETRON hardware (TRION PXI, TRION3 PXIe, TRIONet, PUREC, NEXDAQ).
• It delivers:
• A core C API library (dewepxi_api) for hardware interaction
• Language bindings in C++, C#, Python
• Example programs under trion/ and trionet/ in each language
• A cross-platform .NET MAUI UI (“app/TRION-SDK-UI”)
• Sphinx-based documentation in docs/
• Primary use case: embed or script direct data-acquisition control of DEWETRON devices.
File structure
• Top-level:
• 3rdparty/pugixml – XML parser dependency
• trion_api/ – wrapper libraries (C, CS, CXX, python)
• trion/ & trionet/ – “bare-metal” examples per language
• app/TRION-SDK-UI – .NET MAUI multi-platform UI front-end
• docs/ – Sphinx docs (RST, static HTML/PDF)
• cmake/ – CMake settings, build scripts
• Patterns:
• Layered architecture: Core C API → multi-language bindings → consumers (examples + UI)
• Build: CMake for C/C++/C#, pyproject/setup.py for Python
Key README insights
• The SDK relies on an installed TRION Application (drivers + firmware).
• Examples show typical init → configure → acquire → cleanup flow.
• Python packaging via pip (trion_sdk).