# Help with counterbalancing

**URL:** <https://discourse.psychopy.org/t/help-with-counterbalancing/29709>\
**Category:** Builder\
**Created:** [June 22, 2022, 2:02pm UTC](https://discourse.psychopy.org/t/help-with-counterbalancing/29709 "2022-06-22T14:02:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jdigg](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jdigg](https://discourse.psychopy.org/u/Jdigg)\
**Post date:** [June 22, 2022, 2:02pm UTC](https://discourse.psychopy.org/t/help-with-counterbalancing/29709/1 "2022-06-22T14:02:21Z")

</div>

I am using version 2022.1.4

I have created an experiment, where participants have 4 different blocks to finish, 3 different times. I have created the excel sheets for the permutations which have been selected by the researcher, and it mostly runs fine.

The issue I have, is that after each block there is a rest screen. When I didn’t have the counterbalancing, everything ran fine. With the counterbalancing however, it can sometimes play the “rest” routine as the first routine, sometimes two or three times in a row, prompting multiple button responses to close it out.

I have attached an image of the layout below. Is there something I need to do differently, to make sure the rest blocks show?

Thank you

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/8/482844801de57c7d9bfd1106106bf900bf719c51.png)

---

<div class="post-metadata">

**Author:** ![ajus](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ajus](https://discourse.psychopy.org/u/ajus)\
**Post date:** [June 22, 2022, 2:20pm UTC](https://discourse.psychopy.org/t/help-with-counterbalancing/29709/2 "2022-06-22T14:20:06Z")

</div>

Hi @Jdigg,

to me it sounds like you try to counterbalance the order of the blocks in this way, right? What you describe might happen if multiple of the inner loops have 0 repetitions. Does only one of the inner loops have non-0 repetitions per repetition of the outer “counterbalance” loop? If this is the case, just delete every “rest” except for the very last one.

If this is not the case, could you post a screenshot of the conditions file and some details on what you actually counterbalance?

Best,  
Adrian

---

<div class="post-metadata">

**Author:** ![Jdigg](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jdigg](https://discourse.psychopy.org/u/Jdigg)\
**Post date:** [June 22, 2022, 2:43pm UTC](https://discourse.psychopy.org/t/help-with-counterbalancing/29709/3 "2022-06-22T14:43:12Z")

</div>

That’s sorted it! Thank you. Just leaving the last rest in seems to have got it working.
