PDA

View Full Version : Cedrus Response Pad?


Trevor
08-10-2012, 11:56 AM
I'd like to use a Cedrus Response Pad RB Series for collecting response and timing data. I want to use it to replace simple keystrokes, but am not sure where to get started. Is there any documentation for using this with Vizard? Thanks.

Jeff
08-16-2012, 04:26 PM
You can use the vizcedrus module. To connect to the pad use the following:
#Connect to cedrus pad
import vizcedrus
vizcedrus.open() #Default: port=1 , baudRate=19200

Then you can register callback functions for button events:
#Setup cedrus callbacks
def cedrusButtonDown(e):
print e.button,'button down'

def cedrusButtonUp(e):
e.button,'button up'

viz.callback(vizcedrus.BUTTONDOWN_EVENT,cedrusButt onDown)
viz.callback(vizcedrus.BUTTONUP_EVENT,cedrusButton Up)