WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-02-2014, 10:22 AM
hfarmer hfarmer is offline
Member
 
Join Date: Jan 2014
Posts: 6
Logging an RT with a window of time

Hi,

I'm currently trying to get a study set up using vizard 4 and am having a bit of a problem. I want to set up some code to measure reaction times after the presentation of a stimuli. However I want the program to move on to the next trial after 3 seconds regardless of whether a key is pressed or not. However this doesn't seem to be possible using the standard way of measuring reaction times given in the Vizard tutorial e.g:
Code:
		d = yield viztask.waitDraw() #Set Display time
		displayTime = d.time #Log display time
		d = yield viztask.waitKeyDown(None) #Log keypress time
		pressTime = d.time
		reactionTime = pressTime- displayTime #Calculate reaction time
Basically I want to know if there's a way to set up two parallel processes, one which is waiting for a key press to log reaction times and the other which just runs a timer and moves on the program after 3 seconds. Any help would be much appreciated.
Reply With Quote
 


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
exact copy of mainview in second window dcnieho Vizard 1 06-30-2014 04:02 PM
Window always on top madeinjava Vizard 4 08-27-2013 02:10 PM
Unexpected Change of Window Size javadi Vizard 7 07-23-2013 02:56 PM
Inconsistent timestamp while logging mape2k Vizard 4 07-15-2013 06:03 AM
timer question Elittdogg Vizard 5 10-10-2007 02:49 PM


All times are GMT -7. The time now is 07:52 PM.


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