I cannot successfully use counterbalance

OS : Linux
Version: 2024.2.5
Do you want it to also run locally? (y/n) Both
Hi,
I cannot use successfully PsychoPy’s counterbalance component and Shelf’s counterbalance feature for either locally run exps or online.

Below screengrabs of how my exp looks like and shelf’s counterbalance contents.

I run the exp offline, I add a print(counterbalance.group) statement and it throws the error that counterbalance is not defined.

I run the exp online and no “slots” are taken from any of the groups.
I open the data files and there is nothing relevant regarding counterbalance.

What am I doing wrong?
Any pointers/advice will be much appreciated.
Thanks


Where are you doing this? You need to query counterbalance.group in Begin/End Routine after the counterbalance routine, not Begin Experiment.

EDIT: scratch that - I forgot to insert it in the Flow :face_with_steam_from_nose:

It’s in the Begin routine in the trial routine