The purpose of this repository is to learn about measuring latencies and identifying stimulus onsets for experiments combining electroencephalogram (EEG) and virtual reality (VR). We used Unity 3D to design a virtual environment and Lab Streaming Layer (LSL) to simultaneously collect, synchronize, and store the data.
The repository contains:
- latency-tests.ipynb: It containing tasks to learn how to process .XDF files and how to design and analyze devices' latencies previous to start the recording phase.
- trigger-onsets.ipynb: It contains tasks to learn how to identify stimulus onsets and create the trigger files used for even related potential analysis (ERP).
- data: folder for the latency test files (Note: make sure to unzip data).
- data-onset: folder for the experiment file (Note: make sure to unzip data).
Python 3.8
or higher- Latest version of
pip
installed, see troubleshooting for upgrade
- Create a folder and place
requirements.txt
- From the terminal, go to the created folder and run:
For Windows:
python -m venv iiccsss-eeg
And then, iiccsss-eeg\Scripts\python -m pip install -r requirements.txt
For Mac/Linux:
python3 -m venv iiccsss-eeg
And then, iiccsss-eeg/bin/python -m pip install -r requirements.txt
When error as follows occurs:
raise BackendUnavailable
or
pip._vendor.pep517.wrappers.BackendUnavailable
run
For Windows:
iiccsss-eeg\Scripts\python -m pip install --upgrade pip
For Mac/Linux:
iiccsss-eeg/bin/python -m pip install --upgrade pip
And then re-run step 2 above