User Tutorial:Psychopy
Jump to navigation
Jump to search
Description
PsychoPy is an open-source application used to perform a large number of neuroscience, psychology, and psychophysics experiments. The video first describes the two 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 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 State 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 states 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)
- Add the BCIUpdateState component to where you want to update state values. You can either choose to simply pass a variable through BCIUpdateState, 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.