timing stimulus (sketchpad) before coroutines
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