DEWETRON TRION SDK. TRION API SDK description and example sources.
A development environment allowing to directly access DEWETRON hardware:
- DEWETRON TRION PXI boards
- DEWETRON TRION3 PXIe boards
- DEWETRON TRIONet devices
- DEWETRON PUREC devices
- DEWETRON NEXDAQ devices
New DEWETRON TRION API package:
- 2025-05-21 Release of TRION API R7.5.1
- 2025-05-21 Release of TRIONET FIRMWARE R7.5.1
- 2025-05-21 Release of NexDAQ FIRMWARE R7.5.1
Get those for optimal results.
Python now supports installing a trion_sdk package that can be installed using pip.
To use the DEWETRION TRION SDK you need a current TRION API installation. The TRION Application installer is available on DEWETRON's customer care center:
TRION Application Installer: https://ccc.dewetron.com/pl/trion-3-modules
TRIONET Firmware: https://ccc.dewetron.com/pr/trionet
NEXDAQ Firmware: https://ccc.dewetron.com/pl/nexdaq
Or get it from this projects Releases section.
An online version of the TRION SDK documentation is hosted here:
https://dewetron.github.io/TRION-SDK/
The docs directory contains pdf and html versions of the complete documentation.
For offline use we provide this pdf: https://github.com/DEWETRON/TRION-SDK/releases/download/TRION-R7.0.0/dewetrontrionsdk.pdf
This directory contains language bindings for C, C# and Python
This directory contains examples directly accessing TRION boards. Usually for programms directly running on DEWE2 & DEWE3 enclosures.
This directory contains examples for accessing TRIONET devices.
Building the C examples require CMAKE (https://cmake.org/).
cd trion\C
mkdir build
cd buildFor a Visual Studio 2019 run:
cmake -G "Visual Studio 16 2019" ..Other generators are listed when calling "cmake -G"
Open the generated solution:
start TRION_SDK_C.slnSee trion/C for available examples.
Building the C# examples also require CMAKE (https://cmake.org/).
cd trionet\CS
mkdir build
cd buildFor a Visual Studio 2019 run:
cmake -G "Visual Studio 16 2019" ..Other generators are listed when calling "cmake -G"
Open the generated solution:
start TRION_SDK_CSHARP.slnSee trionet/CS for available examples.
Running the python examples requires an installed TRION API and the trion_sdk package installed via pip (for the current user or in a virtual environment):
pip install git+https://github.com/DEWETRON/TRION-SDK.gitYou can the use the TRION SDK in Python as follows:
from trion_sdk import *
DeWePxiLoad()
error_code, num_boards = DeWeDriverInit()
if num_boards != 0:
error_code = DeWeSetParam_i32( 0, CMD_OPEN_BOARD_ALL )
error_code = DeWeSetParam_i32( 0, CMD_RESET_BOARD_ALL )
# Your program goes here
error_code = DeWeSetParam_i32( 0, CMD_CLOSE_BOARD_ALL )
DeWePxiUnload()See trion/python for available examples.
Company Information
For general questions please contact:
For technical questions please contact:
- Gunther Laure gunther.laure@dewetron.com
- Martin Poniz martin.poniz@dewetron.com
- Matthias Straka matthias.straka@dewetron.com
MIT License
Copyright (c) 2024 DEWETRON
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. LICENSE (END)