UNICORNConnect enables direct connection and data acquisition from the g.tec's UNICORN EEG System using MATLAB or Python, without the need for any additional software. To check payload conversion, see pdf https://github.com/unicorn-bi/Unicorn-Suite-Hybrid-Black/blob/master/Unicorn%20Bluetooth%20Protocol/UnicornBluetoothProtocol.pdf
This MATLAB program allows you to connect to your g.tec UNICORN device, acquire data, process it, and then stop the data acquisition.
- Enter your device's COM port.
- Set the sampling rate, timeout, and recording time.
- Connect to the device using the UnicornConnect function.
- Fetch data from UNICORN using UnicornGetData.
- Process the data as needed.
- Stop data acquisition using the stop_acq command and clear the connection.
This Python script communicates with your g.tec UNICORN device through a serial interface.
- Install requirements
pip install -r requirements.txt- Set up the device's COM port, timeout, number of samples, and number of channels.
- Connect to the device using UnicornConnect.py
- Fetch data from UNICORN using UnicornGetData.py