Python Examples

Python Installation

See the getting started repo for full scripts. For python, we use 3.8.5, but any later 3+ version will probably work. Create a virtualenv from that repo:

pip install venv
python3 -m venv eeg_venv
# activate the venv according to your OS
# Windows example:
. ./eeg_venv/scripts/Activate
pip install -r requirements.txt

Script Examples

This script receives an OSC EEG stream and prints it to the console.

python osc_receive.py -t /PetalStream/eeg
python osc_receive.py -t /PetalStream/gyroscope
python osc_receive.py -t /PetalStream/acceleration
python osc_receive.py -t /PetalStream/telemetry
python osc_receive.py -t /PetalStream/connection_status
python osc_receive.py -t /PetalStream/ppg

Last updated