OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): v2021.1.4
What are you trying to achieve?:
My experiment shows participants an image and has them interact with the image. When they have finished, they press enter and a new image is shown. Each image constitutes one trial, and I have the image names written in a list in the code components for each routine (phase of the experiment). In the experiment, I have a routine with 30 reps (each rep is one trial). After 30 reps, the routine should end and the next routine should start. However, the routine just stays stuck on the 30th trial and doesn’t advance to the next routine.
What did you try to make it work?:
I specified 30 reps in the loop properties, and when that didn’t work I added the following code in the “End Routine” section of the routine’s code component:
if P1_i == 30:
P1_Loop.finished = True
P1_i is what I’ve called the index for the routine and P1_Loop is what I’ve called the loop. Each rep uses one place in the index.
What specifically went wrong when you tried that?:
The experiment still stayed stuck on the 30th trial. It just repeated the trial over and over again.