Jump to content

User Tutorial:BCI2000PresentationLink: Difference between revisions

From BCI2000 Wiki
Nluczak (talk | contribs)
No edit summary
Nluczak (talk | contribs)
Line 3: Line 3:
==Tutorial==
==Tutorial==
<ol>
<ol>
<li>Download the Psychopy standalone version from the Psychopy [https://www.psychopy.org/download.html downloads page].<br/>
<li>Download Presentation from their [https://www.neurobs.com/menu_presentation/menu_download/current downloads page] and install.<br/>
</li>
</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>Find and run "INstallPresentationLink.cmd" which is located in BCI2000/prog
</li>
</li>
<li>
<li>Open presentation's main window and choose "Extension Manager" from the "Tools" menu
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>
<li>
<li>
Look at the custom section under components
Find and click on "Select Extension File" and select your BCI2000 installation's BCI2000PresentationLink.dll file which is located in BCI2000/prog
</li>
</li>
<li>
<li>
Add BCI2000 Start Component
under "Available Extensions" you will see two extensions: "PCL Extension" and "Data Port." Select on one of the available extensions and enter its name into the "Register as:" field.
</li>
</li>
<li>
<li>
Enter the path to the prog folder in the BCI2000 directory where your BCI2000Remote.py file exists
Make sure that you select "don't register server with Windows" and then click "Register Extension"
</li>
</li>
<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)
Do this same process for the other available extension.
</li>
</li>
<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.
Both BCI2000DataPortExtension and BCI2000PCLLibrary should now be entries in the "Registered Extensions"
</li>
</li>
<li>
<li>
Run the experiment
</li>
</ol>
</ol>
==Video==
==Video==
<youtube alignment="center">https://youtu.be/uLK3yl5MNu0</youtube>
<youtube alignment="center">https://youtu.be/uLK3yl5MNu0</youtube>

Revision as of 20:07, 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

  1. Download Presentation from their downloads page and install.
  2. Find and run "INstallPresentationLink.cmd" which is located in BCI2000/prog
  3. Open presentation's main window and choose "Extension Manager" from the "Tools" menu
  4. Find and click on "Select Extension File" and select your BCI2000 installation's BCI2000PresentationLink.dll file which is located in BCI2000/prog
  5. under "Available Extensions" you will see two extensions: "PCL Extension" and "Data Port." Select on one of the available extensions and enter its name into the "Register as:" field.
  6. Make sure that you select "don't register server with Windows" and then click "Register Extension"
  7. Do this same process for the other available extension.
  8. Both BCI2000DataPortExtension and BCI2000PCLLibrary should now be entries in the "Registered Extensions"

Video

Also see the BCPy2000 page for more details on the installation process, APIs, and hooks.


See also

Contributions:BCPy2000