General lines to run an experiment with Muse and PsychoPy
Synchronization of software: one needs to synchronize the streaming recorded by the
Muse (EEG) with the behavioral experiment recorded by PsychoPy. More specifically,
one should put markers on the EEG recording to indicate precisely when the stimuli
were presented. One marker corresponds to one stimulus. Different colors of markers
indicate different conditions.
Since PsychoPy is written in Python, we need a Python environment that will be able to
combine Muse with PsychoPy. We will use Anaconda.
We also need to add few Python program lines in the PsychoPy program to manage the
markers and other parts of the process.
This is all detailed in instructions_Muse_PsychoPy.pdf
Once the recordings are done, we will use a Colab notebook (on Google) to process the
data. More on this when we get there.
Steps:
1) Install Anaconda from [Link]
Select environment.
2) Install BlueMuse (on Windows machine only) from [Link]
In settings, Primary Timestamp Format, choose Native LSL Local Clock
3) Dawson Muse project: from [Link]
Download in new directory that you may call DawsonMuse (not in your download folder)
In Anaconda environment and in the directory you just created,
> pip install muselsl
> pip install -e . (don’t forget “ .” at the end!)
4) Skip 2.2 in instructions from Toky and go to
2.3 How to run ERP experiments with PsychoPy with the launcher
Note: [Link] is downloaded with Dawsonmuse
Note: when doing a recording with Muse, disconnect your computer from school network.
PsychoPy on Macs
[Link]
Feb 7, 2022
Hi all,
here is a simple solution for installing PsychoPy using Anaconda, since PsychoPy does not
seem to start if you simply install with conda and the *.yml template on OS X Monterey. I
was struggling several days with this, the problem seems to be wxpython.
For me, it worked to:
1. Create conda enviroment an activate it:
> conda create -n psychopy python=3.6
> conda activate psychopy
1. Now in the conda env install psychopy using pip:
> pip install psychopy
1. The problem sseems to be wxpython. For running a GUI that uses wxpython (as
is the case with PsychoPy) you need pythonw running. For this, installing the
“[Link]” via conda is sufficient.
> conda install [Link]
1. Now, when this has been successfully installed you can start PsychoPy:
> psychopy
Cheers,
Sven.