WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-10-2012, 11:56 AM
Trevor Trevor is offline
Member
 
Join Date: Jan 2011
Posts: 3
Cedrus Response Pad?

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.
Reply With Quote
  #2  
Old 08-16-2012, 04:26 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can use the vizcedrus module. To connect to the pad use the following:
Code:
#Connect to cedrus pad
import vizcedrus
vizcedrus.open() #Default: port=1 , baudRate=19200
Then you can register callback functions for button events:
Code:
#Setup cedrus callbacks
def cedrusButtonDown(e):
	print e.button,'button down' 

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

viz.callback(vizcedrus.BUTTONDOWN_EVENT,cedrusButtonDown)
viz.callback(vizcedrus.BUTTONUP_EVENT,cedrusButtonUp)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HapticMaster + Vizard 4.0 SDK help pwsnow Plug-in development 7 03-03-2014 03:44 AM
integrating brain-imaging response buttons with Vizard hrm Vizard 1 05-04-2012 06:24 AM
viznet does not response! shahramy Vizard 3 06-16-2010 06:12 PM
IE cannot display form response page from python server Gladsomebeast Vizard 2 12-01-2008 09:12 PM


All times are GMT -7. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC