User Tutorial:BCI2000PresentationLink: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==Description== | ==Description== | ||
BCI2000PresentationLink contains two plug-ins for the [http://www.nbs.com/ NBS Presentation] stimulus delivery software, a so-called ''DataPort Extension'' which allows to record Presentation events into BCI2000 state variables, and a ''PCL Language Extension'' that allows to control BCI2000 from Presentation scripts written in the PCL language. | BCI2000PresentationLink contains two plug-ins for the [http://www.nbs.com/ NBS Presentation] stimulus delivery software, a so-called ''DataPort Extension'' which allows to record Presentation events into BCI2000 state variables, and a ''PCL Language Extension'' that allows to control BCI2000 from Presentation scripts written in the PCL language. | ||
==Tutorial== | |||
<ol> | |||
<li>Download the Psychopy standalone version from the Psychopy [https://www.psychopy.org/download.html downloads page].<br/> | |||
</li> | |||
<li>Copy the folders '''BCIStart''' and '''BCIUpdateState''' from ''src/contrib/PsychoPy Components'' directory of your BCI2000 repository into the folder {$PsychoPyHome}\Lib\site-packages\psychopy\experiment\components folder. | |||
</li> | |||
<li> | |||
Open PsychoPy and then open your experiment file (StroopExtended is what we use in the demo) | |||
</li> | |||
<li> | |||
Open the part of the experiment where you want to start BCI2000 | |||
</li> | |||
<li> | |||
Look at the custom section under components | |||
</li> | |||
<li> | |||
Add BCI2000 Start Component | |||
</li> | |||
<li> | |||
Enter the path to the prog folder in the BCI2000 directory where your BCI2000Remote.py file exists | |||
</li> | |||
<li> | |||
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) | |||
</li> | |||
<li> | |||
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. | |||
</li> | |||
<li> | |||
Run the experiment | |||
</li> | |||
</ol> | |||
==Video== | |||
<youtube alignment="center">https://youtu.be/uLK3yl5MNu0</youtube> | <youtube alignment="center">https://youtu.be/uLK3yl5MNu0</youtube> | ||
Also see the [https://bci2000.org/mediawiki/index.php/BCPy2000 BCPy2000] page for more details on the installation process, APIs, and hooks. | Also see the [https://bci2000.org/mediawiki/index.php/BCPy2000 BCPy2000] page for more details on the installation process, APIs, and hooks. | ||
Revision as of 19:17, 9 September 2021
Description
BCI2000PresentationLink contains two plug-ins for the NBS Presentation stimulus delivery software, a so-called DataPort Extension which allows to record Presentation events into BCI2000 state variables, and a PCL Language Extension that allows to control BCI2000 from Presentation scripts written in the PCL language.
Tutorial
- Download the Psychopy standalone version from the Psychopy downloads page.
- Copy the folders BCIStart and BCIUpdateState from src/contrib/PsychoPy Components directory of your BCI2000 repository into the folder {$PsychoPyHome}\Lib\site-packages\psychopy\experiment\components folder.
- 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
- Look at the custom section under components
- Add BCI2000 Start Component
- 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 BCPy2000 page for more details on the installation process, APIs, and hooks.