Loop shows the first image only (out of 3)

OS (e.g. Win10): MacOS Sequoia 15.0.1
PsychoPy version (e.g. 1.84.x): PsychoPy Builder (v.2024.1.5)
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: I am trying to create a loop that shows the images that are in the csv file

**What did you try to make it work?:**I tried to write it as a code in the routine

What specifically went wrong when you tried that?: Only the first image is shown, the loop doesn’t go through the 3 images from the csv


What happens in the data file?

Do you have any code like stims_loop.finished = True?

Is feedback_loop supposed to start after the three images have been presented?

1 Like

First of all, thanks for your reply.

Here is a screenshot of the csv file which I exported from Google Sheets as .csv:

I have 2 code components in the main_routine routine, the first one, which is called “after_click_feedback” should show a text feedback after each valid mouse click on one of the 2 buttons, and then the loop should start.

Actually I figured it out while I was writing the answer now, your third question “Is feedback_loop supposed to start after the three images have been presented?” has given me the answer. My mistake was that I created the 2 separate loops, one for the main_routine and one for the feedback_routine, but I should have made a loop which goes around both routines first, then another loop for the feedback_routine only.

It was like this:

And now it is like that:

Thanks a lot for your help

1 Like