User Tutorial:Psychopy
Appearance
Description
PsychoPy is an open-source application used to perform a large number of neuroscience, psychology, and psychophysics experiments. The video first describes the three components that are developed to remotely start BCI2000 from PsychoPy, then lists the steps to follow to add the new components in the PsychoPy application and finally goes on to an example.
Tutorial
- Download the PsychoPy standalone version from the PsychoPy downloads page.
- Copy the folders BCIStart, BCIUpdateEvent, and BCIUpdateState from the src/contrib/PsychoPy Components directory of your BCI2000 repository into the folder {$PsychoPyHome}\Lib\site-packages\psychopy\experiment\components
-
Open PsychoPy and then open your experiment file (StroopExtended is what we use in the demo)
-
Open the part of the experiment where you want to start BCI2000 (in this case the instruct tab) and look under the custom section of the components for the BCI Connect and BCI Update Event components
- Add the BCI2000 Start Component by clicking on it.
-
Enter the path to the prog folder in the BCI2000 directory where your BCI2000Remote.py file exists
-
Add the events that you want to record separated by commas (the first value will always be the default value and the second value will always be the maximum value). It is strongly recommended to use events instead of states, as events are recorded on a per-sample basis, while states are recorded on a pre-block basis.
-
Add the BCIUpdateEvent component to where you want to update event values. You can either choose to simply pass a variable through BCIUpdateEvent, or you can specify that it execute a specific Python script by choosing the "Use Expression" ticker
-
Run the experiment
Video
Also see the PsychoPy page for more details on the installation process, APIs, and hooks.









