| Reference | Downloads | Github

Blocks of trials and counterbalancing online

URL of experiment:

Description of the problem: I am trying to implement a simple experiment where one movie each out of two categories is played. Each category has three movies and I want to select one randomly as well as randomize the order of the categories.
I managed to do this offline using this guide: Blocks of trials and counterbalancing — PsychoPy v2021.1 and a small code component described here: How to present subset of all images randomly - #2 by Michael

However, online all movies are played in the order of the list.

Does anyone know how to implement this online?


Hi There,

Sounds like you could be using thisN in your code component and that doesn’t yet work online - can you make a variable to count the trials in your code component and instead use that?


1 Like

Thank you, I was able to create a variable in the code component and this works online too!