How to Implement Counterbalancing in Online Experiments with Shelf & PsychoPy

Опубликовано: 26 Июль 2026
на канале: PsychoPy
1,856
25

Note there is an updated version of this video for more recent PsychoPy releases here    • How to Counterbalance Automatically in Psy...  

In this tutorial, we’ll show you how to easily implement counterbalancing in your online PsychoPy experiments using Shelf on Pavlovia.
Counterbalancing is an essential technique to avoid order effects in your experimental conditions. As of PsychoPy 2024.1.5, Shelf has introduced a new component that simplifies this process (without needing code components) — but for now, this tutorial focuses on interacting with Shelf via code components. We'll cover the updated method in a future video, so stay tuned!

What we cover in this tutorial:

🔑 Introduction to counterbalancing in online experiments (0:00)

🛠️ How to set up counterbalancing using Experiment Settings (01:26)

🔍 Setting up a Query string for counterbalancing (02:47)

📊 Understanding Shelf on the Pavlovia Dashboard (03:32)

📑 Creating a Counterbalancing Routine Template (04:25)

📝 How to create a Shelf record on Pavlovia (05:54)

🔄 Editing the pick_group routine (08:23)

Whether you’re conducting cognitive research or building interactive psychology tasks, this tutorial will streamline your process.

If you found this video helpful, leave a comment letting us know what other tutorials you’d like to see next!

Get in touch with us: Want personalized help with your experiment design? Reach out via [email protected].

More about Open Science Tools: Learn more about who we are and how we support PsychoPy at OpenScienceTools.org. https://opensciencetools.org/