Lab Streaming Layer for fNIRS, EEG, ... and what not.
author: @nimrobotics
- Install Windows Subsystem for Linux as this pipline is based on Linux. Below two versions have been tested.
- Ubuntu 18.04 LTS (Bionic)
- Ubuntu 20.04 LTS (Focal)
- Install the core LSL library
- Download the latest version (*.deb) from GitHub LSL library from the releases page.
- Switch to the directory where the *.deb is located.
- Change permissions to
chmod +x *.deb
- Install the *.deb
sudo dpkg -i liblsl-bin_*.deb
- Install the python binding pylsl
pip3 install pylsl
In order to be able to work with different computers over network, please make sure all apps (python, Aurora fNIRS, EEG, ...) are allowed through Windows Defender Firewall. More info: https://pureinfotech.com/allow-apps-firewall-windows-10/
- Run the following command to start the streamer:
python3 streamer.py
- Alter the parameters in the example progam if needed.
- Open Aurora on Windows and connect with the fNIRS device.
- On the configuration page, select the desired probmap and click
Edit
as shown in the image below. - In the
Basic parameters
tab, add triggers (ideally, the same number as defined in thestreamer.py
program). - Verify that the
Data out stream name
andData in stream name
same as defined in thestreamer.py
program. - Now you should be able to see the data with triggers in the Aurora console.
- The trigger input may be automated to your needs.
- A few times the LSL stims were not placed on the fNIRS recordings when the fNIRS was connected using a cable. Although, the fNIRS data was transmitted over the wired connection, team T2D suspects that it was a problem with the cable.