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 LSL API stream and prints it to the console.

python lsl_receive.py -n PetalStream_blink
python lsl_receive.py -n PetalStream_eye
python lsl_receive.py -n PetalStream_bandpower
python lsl_receive.py -n PetalStream_artifact_detect
python lsl_receive.py -n PetalStream_metrics

Last updated