# The experiment doesn't work in the middle of the loop

**URL:** https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470
**Category:** Online experiments
**Created:** [September 18, 2023, 10:44am UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470 "2023-09-18T10:44:10Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 10:44am UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/1 "2023-09-18T10:44:10Z")

</div>

URL of experiment:

Description of the problem:In my experiment I have one Into Text, one loop in sequence and one Outro Text. The loop shows some images as trials from the spreadsheet and it stops automatically after showing the image numer 12. I couldn’t fine any error in the file excel input so maybe I should change some settings.  
You may help me with this. Thanks!

---

<div class="post-metadata">

### Author: ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)
#### Post date: [September 18, 2023, 11:21am UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/2 "2023-09-18T11:21:26Z")

</div>

Hello,  
Can you please provide more context?  
What does your flow look like? Is the experiment crashing? What is the intended behavior, and what is actually happening?

Thanks,  
Chen

---

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 11:47am UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/3 "2023-09-18T11:47:19Z")

</div>

![Screenshot (964)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/f/6f4ea6af55714d49c9867c1a3165853183f0cef0.jpeg)  
 ![Screenshot (965)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/a/9/a9b3d3e9038423d20be235008f11a5013311681a.jpeg)

This is how the experiment looks like.  
The process should be the presentation of 45 parameters (images) in the loop trial, sequentially.  
But the problem is that after 12 images the experiment stops itself.

---

<div class="post-metadata">

### Author: ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)
#### Post date: [September 18, 2023, 1:34pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/4 "2023-09-18T13:34:22Z")

</div>

Can you please provide the condition file as well as an image of your experiment’s images folder?  
Thanks

---

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 1:49pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/5 "2023-09-18T13:49:51Z")

</div>

![Screenshot (966)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/7/d7354ad43aabf0a2f7be49ec2e12a4aab3965469.jpeg)  
This is the folder with the experiment inside. “LoopTemplate1” is the file with the images inside and should works in Psychopy showing all the images in sequence (45 images)

---

<div class="post-metadata">

### Author: ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)
#### Post date: [September 18, 2023, 2:17pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/6 "2023-09-18T14:17:14Z")

</div>

Hello,  
Can you please share the actual condition file here? So I could take a look at it?  
Also, can you add another image of the images folder?  
Thanks!

---

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 2:49pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/7 "2023-09-18T14:49:34Z")

</div>

![Screenshot (967)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/3/23f65ee665d69f904df1c2bc55251a9936cefe7b.jpeg)  
 ![Screenshot (968)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/c/5c37f9df88b69029038a4d1945d554afcdb437d7.png)  
These are the folder with the images and how the spreadsheet looks like.

---

<div class="post-metadata">

### Author: ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)
#### Post date: [September 18, 2023, 3:03pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/8 "2023-09-18T15:03:54Z")

</div>

Hey,  
What error do you receive when the experiment stops?  
Could you maybe share your experiment files?

Chen

---

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 4:09pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/9 "2023-09-18T16:09:08Z")

</div>

[Esperimento Destito.zip](https://discourse.psychopy.org/uploads/short-url/1MkO57QYSvAOH1aIxTgJFhiyMdG.zip) (904.5 KB)  
This is all I’m working on

---

<div class="post-metadata">

### Author: ![Chen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chen/32/38825_2.png) [@Chen](https://discourse.psychopy.org/u/Chen)
#### Post date: [September 18, 2023, 4:22pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/10 "2023-09-18T16:22:30Z")

</div>

The files you have sent don’t include the `loopTemplate1.xlsx`.  
Can you please provide it as well?

Thanks!

---

<div class="post-metadata">

### Author: ![Maria\_Ilenia\_Destito](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/maria_ilenia_destito/32/39395_2.png) [@Maria\_Ilenia\_Destito](https://discourse.psychopy.org/u/Maria_Ilenia_Destito)
#### Post date: [September 18, 2023, 4:32pm UTC](https://discourse.psychopy.org/t/the-experiment-doesnt-work-in-the-middle-of-the-loop/36470/11 "2023-09-18T16:32:31Z")

</div>

[loopTemplate1.xlsx](https://discourse.psychopy.org/uploads/short-url/mGY2Gmcx6qdRDGl3Ndl0MSFLYYv.xlsx) (18.0 KB)  
There you go
