Previous topic

Launch an fMRI experiment: Test or Scan

Next topic

ioLab

This Page

Quick links

fORP response box

fORP MR-compatible input devices (by CurrentDesigns) See http://www.curdes.com/WebHome.html


class psychopy.hardware.forp.ButtonBox(serialPort=1)

Serial line interface to the fORP MRI response box

Set the box use setting 0 or 1 and connect the serial line to use this object class. (Alternatively connect the USB cable and use fORP to emulate a keyboard).

fORP sends characters at 800Hz, so you should check the buffer frequently. Also note that the trigger event numpy the fORP is typically extremely short (occurs for a single 800Hz epoch).

serialPort should be a number (where 1=COM1,...)

clearBuffer()

Empty the input buffer of all characters

getEvents(returnRaw=False)

Returns a list of unique events (one event per button pressed) AND stores a copy of the full list of events since last getEvents() (stored as ForpBox.rawEvts)

getUniqueEvents(fullEvts=None)

Returns a Python set of the unique (unordered) events of either a list given or the current rawEvts buffer