#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? |
#2
|
|||
|
|||
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.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |