Response time for two sketchpads
Hey guys,
I'm currently working on a Flanker-Test and try to collect variables such as accuracy and response_time after a stimulus is shown. It works fine if I set the duration of the sketchpad, which contains the stimuli, to zero. In that case the sketchpad is shown until a button is pressed. But now I want to set the duration to 500ms and add a second blank sketchpad with a duration of 2000ms after it. I want to collect the response_time from the beginning of the first sketchpad until the end of the second. So the participants have 2500ms to react but if they react faster the sketchpad is not supposed to disappear before the 2500ms are over. If I try to set the duration of the first sketchpad to 500ms I just get the response_time of 0 for all tries. And the same happens if I add a second blank sketchpad.
I hope someone can help me.
Greetings
Kantartur
Comments
I don't have any first-hand with coroutines myself, but you might find it worth looking into them: http://osdoc.cogsci.nl/3.1/manual/structure/coroutines/#using-coroutines
Hey Cesco,
thank you, that's awesome! I did it with coroutines and it exactly works how I wanted!
This way the Targets are shown for 500ms and after the 500ms the Blank Screen (White) is shown for the rest of the time. When I place a logger after the coroutines it works fine an logs the time between 0 and 2500 ms