Help with new counterbalance component and shelf

OS (e.g. Win10): Mac OS
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.2.4
Standard Standalone Installation? (y/n) yes
Do you want it to also run locally? (y/n) no

What are you trying to achieve?:

Hello,

I would like to run an experiment online where participants are assigned to two counterbalanced groups and each of these groups should refer to a different set of stimuli.

I’m using the shelf feature and the new counterbalance routine in the builder. But I’ve never used this feature before, so I’m having some doubts on how to implement it correctly. I hope that someone can help me.

The part that I’m having trouble with is that I want the participants to be assigned automatically either to group A or B in a counterbalanced way.

What did you try to make it work?:

I defined two groups in the “experiment info → group” setting (group “A” and “B”, as described in this post: Blocks of trials and counterbalancing — PsychoPy v2024.2.5)
and I set up the experiment in the way that group A will be shown a different set of stimuli than group B.

In the experiment builder, I used the new counterbalance component (Counterbalance Standalone Routine — PsychoPy v2024.2.5)

In pavlovia, I set up a shelf, with the following structure (as described here: Using the Shelf for Multi-session testing, Counterbalancing and more online — PsychoPy v2024.2.5):

When testing the experiment online, the shelf counter is assigning my participants correctly to the “shelf” groups A or B. But, these groups do not coincide with the groups that I defined in the experiment setting section.

So, when starting the experiment, I still have to manually select the group and the lists are shown according to this selection, not to the shelf/counterbalanced option. What am I missing?

How can I fix this problem?

Delete group from your expInfo dialogue box.

Use counterbalance.group instead (which is only available after the counterbalance routine so you can’t use it in Begin Experiment).

1 Like

Thank you so much! That solved the problem for me.