timing stimulus (sketchpad) before coroutines
Hi
I'm using coroutines in my experiment. However, it seems like the duration of the stimulus that is presented "before" the coroutine starts, does not "exist". No matter if I set it to 300, 1000, 0, it always has the same (unknown) duration before continuing.
When I remove the coroutines entirely, the duration function works normally again.
What am I doing wrong?
set duration 300
set description "Displays stimuli"
draw image center=1 file="[stim_left]" scale=0.8 show_if=always x="[target_position]" y=0 z_index=0
draw image center=1 file="[stim_right]" scale=0.8 show_if=always x="[target_distractor]" y=0 z_index=0
set flush_keyboard yes
set end_after_item keyboard_response
set duration 5000
set description "Run items simultaneously"
run dot_target end=0 runif=always start=0
run feedback_gofaster_1 end=2000 runif=always start=2000
run keyboard_response end=5000 runif=always start=0
Thanks in advance
Roland
Comments
Hi @Roland ,
The stimulus
sketchpadthat precedes thecoroutinessimply stays on the screen until the firstsketchpadin thecoroutinesoverwrites it. This is indeed a somewhat unpredictable duration that includes the preparation time of the items in thecoroutines.If you want to have better control of the presentation duration of the stimulus
sketchpad, then you should insert it as the first item into thecoroutines, rather than have it precede thecoroutines.Hope this helps!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!