Record, replay and visualise EEG / EMG signals in real time, in the browser, and save them as BIDS for the decoding pipeline.
| Source | Signal | Needs | Status |
|---|---|---|---|
| Simulation | EEG · EMG · Motion | nothing | ✅ |
| File replay | .json .edf .fif .xdf |
a recording | ✅ .json .edf · ❔ .fif .xdf |
| EMG bracelet | EMG · 6 channels · 500 Hz | Arduino UNO R4 with the Chords firmware, over USB | ✅ |
| DSI-24 headset | EEG | the DSI-to-LSL bridge running | |
| PiEEG | EEG | Raspberry Pi with the PiEEG shield | ❔ not verified |
| Stimulus-PC markers | event markers | eeg_emg_v3.py on a second computer, same local network (LSL stimulus_stream) |
✅ simulated stream · ❔ real script and two computers |
git clone https://github.com/N-Pulse/BMI-SOFT-Data_Visualization.git
cd BMI-SOFT-Data_Visualization/visual_interface
./run_local.shOpen http://127.0.0.1:5001, switch on Simulation Mode, press Start Stream.
The script creates a virtual environment, installs the dependencies and starts the server. Start it this way and not with flask run: the Socket.IO server has to be launched through app.py. No bash (Windows)? See manual setup.
Internet is only needed for the first setup (cloning the repository and installing the Python dependencies). Once installed, the interface runs fully offline: Chart.js and Socket.IO are served from
visual_interface/static/vendor/. Python 3.10+, tested on 3.14.
| Path | What it is |
|---|---|
visual_interface/app.py |
The whole backend: acquisition, filtering, recording, BIDS export |
visual_interface/templates/ · static/ |
The web page |
visual_interface/tests/ |
Tests for the recording path |
visual_interface/scripts/ |
Sample-data generators and fake_stimulus.py, a simulated stimulus PC |
docs/USER_GUIDE.md |
Using the interface, hardware setup, troubleshooting |
docs/ARCHITECTURE.md |
How it works, adding a source, known limitations |
Work on a branch and open a pull request; the template asks what changed and where the docs live. Read the known limitations first: they are the to-do list.
