This project is an adapted version of the original OTB-Python repository developed by OTBioelettronica: https://github.com/OTBioelettronica/OTB-Python
The code has been modified and extended to support the specific requirements of this project while maintaining compatibility with the original OTBioelettronica communication framework.
This repository contains Python scripts for communicating with OT Bioelettronica devices. Two implementations are provided, based on different graphical libraries: PyQt and Matplotlib.
This folder contains communication scripts built using the PyQt framework.
- Provides a more responsive and optimized graphical interface.
- Better suited for real-time plotting and data acquisition.
- Recommended for practical and experimental use.
The script used to evaluate the accuracy of a trial is:
PyQt/otb_accuracy.pyTo run the script, first activate the OT Bioelettronica Conda environment:
conda activate OTBioelettronicaThen execute:
python otb_accuracy.pyYou'll have to select the .otb4 file you want to analyze in the window that opens.
The script outputs:
- Accuracy (%): a percentage score representing performance relative to a predefined reference value.
- RMSE (%): the Root Mean Square Error expressed as a percentage, indicating how far the participant's performance deviated from the target trajectory.
This folder contains an alternative implementation using Matplotlib.
While plotting performance is less efficient compared to the PyQt version, it is maintained for completeness and educational purposes.
Scripts for establishing and managing communication with OT Bioelettronica devices.
Example scripts demonstrating how to:
- Send commands to devices
- Receive data streams
- Perform basic input/output operations
- The PyQt implementation is recommended for real-time data acquisition and visualization.
- The Matplotlib implementation may be useful for testing, debugging, or environments where PyQt is unavailable.