WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-12-2014, 04:28 AM
hodka hodka is offline
Member
 
Join Date: Aug 2014
Posts: 1
Wand 2014: Keypress RT timing

Hi,

I am using the PPT Wand 2014 using the "viz_wand_2014.py" included in Vizard 5.

I can easily detect whether a button is pressed using the following code:

ppt_wand = viz_wand_2014.add("localhost",3)
def wand_test():
if ppt_wand.isButtonDown(6):
print "-----"
print viz.tick()
print viz.getFrameTime()
vizact.ontimer(0,wand_test)

However, I have the problem that the timing is locked to the frame rate of the display. In order to aquire more accurate reaction time estimates, it would be great not to be restricted to the frame rate. I tried using the threading.Timer to call the wand_test function more frequently but it also returned the button state only once every frame.

Is there a way to receive a timestamp of when the button was pressed or have a callback function being called once the button is pressed without being restricted to the frame rate?
Reply With Quote
  #2  
Old 08-13-2014, 11:10 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
There maybe a way to poll the button state more frequently using a separate thread. What kind of accuracy are you looking for? For high accuracy reaction timing results we recommend Cedrus response pads. They are supported by Vizard.
Reply With Quote
Reply


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
return variable from keypress function starbug Vizard 2 01-07-2010 11:14 AM
Timing issue Uttama_vizard Vizard 6 04-07-2008 03:44 PM
Timing events dan12345 Vizard 1 02-26-2008 07:03 AM
Timing jaclyn.bill Vizard 2 10-19-2007 03:34 AM


All times are GMT -7. The time now is 02:39 AM.


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