Skip to content
toujames edited this page Mar 29, 2022 · 1 revision

Slot-Machine-Task Wiki

Table of Contents:

Hardware

  • Windows OS - required

Installation

  1. Install PsychoPy3

  2. Download repo or clone repo by:

    $ git clone https://github.com/laureate-institute-for-brain-research/Slot-Machine-Task.git

DLL File

This tasks uses parallel port to send event codes to an an acquisition device like BIOPAC. However, the package needs to verify the location of where this DLL file is located.

If you don't have a parallel port, ignore this step

  1. Enable parallel port by editing the JustBandit_Main.params file and edit the signal_parallel line to this: signal_parallel True

  2. Locate the path of the downloaded repo e.g. C:\Users\username\Downloads\Slot-Machine-Task-main

  3. Edit line 52 in the StimToolLib.py file so that the location points to the inputx64.dll file

    Example: Line 52 would be:

parallel_writer = ctypes.windll.LoadLibrary('C:\Users\username\Downloads\Slot-Machine-Task-main\inpoutx64.dll')

Be sure to edit the path to YOUR correct path location

Running the task

  1. Open Psychopy3 Runner View
  2. Click the green '+' button to add the StimTool.py file.
  3. Highlight the StimTool.py file and click the Green Running man button to run the script.
  4. The StimTool Dialogue will open and enter:
    • Subject ID. Can be any string e.g. TEST
    • Administrator ID. Can be any string e.g JT
    • Experiment Order - JustBandit_Main.TL

Data Location

Default data location will be in the C:\TaskData\ folder. You may also change this location by setting the output_dir configuration in each of the corresponding study-ONLYHC.PARAMS file.

Help

If you still need additional help. Submit an issue ticket or email me at jtouthang@libr.net

Clone this wiki locally