Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

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 sketchpad that precedes the coroutines simply stays on the screen until the first sketchpad in the coroutines overwrites it. This is indeed a somewhat unpredictable duration that includes the preparation time of the items in the coroutines .

    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 the coroutines , rather than have it precede the coroutines .

    Hope this helps!

    — Sebastiaan

Sign In or Register to comment.