psychopy.org | Reference | Downloads | Github

Fixation cross duration various duration


#1

I have an experimentation of n-back.

I have letter that appear for a maximum of 2.5 sec and then a fixation cross for 0.5 sec.

Right now: When the participant pressed on the keyboard, it ends the routine and go directly to the fixation cross. I have 60 letters so the experimentation would take at max 3 minutes, but it can be less if the participant pressed fast.

What I want : My experimentation should take 3 min at every time. So the fixation cross should stay for more than 0.5 sec if the participant answer fast.

Thanks for your help!


#2

You need to unckeck the “Force end of Routine” in the Keyboard component


#3

Thanks for your fast response.
But when I do that, I have my letter that stays on the screen for all the duration of the routine, but what I really want is that the fixation cross stays longer


#4

Someone on an other forum got the answer. Thanks to @lindeloev I put it here if it can help someone.
That’s his reply :
"In your ‘trial’ routine, I would record the routine starting time. Then in the ‘fixation’ routine, I would wait until 3 secs have passed since that starting time.

So in ‘trial’ routine --> Code Component --> ‘begin trial’ tab:

trial_start = core.monotonicClock.getTime()

Then in the ‘fixation’ routine --> fixation cross component --> duration, enter:

$trial_start + 3 - core.monotonicClock.getTime()  # 3 secs later "