PsychoPy version (2020 1.3):
Goal: Trying to modify the OpenIAT to only move to the next trial once the correct response has been given.
At present the OpenIAT moves to the next trial irrespective of whether the correct response was given.
I am trying to minimise the amount of code used to make the transfer to an online version simple.
What did you try to make it work?:
In the original version, the feedback mechanism was in a separate routine to the trial routine. I moved the feedback components into the trial routine and adapted the trial code to look as follows:
I also switched off the “force end of routine” element in the ‘key_resp’ component.
However, the trial always ends on the first key press, correct or otherwise. It has since dawned on me that the code is in the ‘end routine’ tab of the code and has left me wondering, what is causing the routine to end when all the components are set to indefinite and the force end of routine is off?
In my ‘begin routine’ code I have simply have:
Am I missing something fundamentally basic about the way psychopy works? I assumed it would simply stay in the trial loop until the keypress was considered correct?