Display images randomly between baseline periods

OS: 11
PsychoPy version: 2024.2.2

Hi everyone, I hope someone can help me with my experiment. I’m new using Psychopy. I want to replicate the experimental paradigm of the following diagram:

During the experiment, the participant will be shown 3 different images and 1 video. One image corresponds to the 20-second rest period before each condition. The other two images and the video tell the participant which movement condition should be performed. What I want is to show one of the conditions (2 images or the video) randomly for each trial.

My question is: in the Builder editor should I create a trial with the rest period image and one of the two images or the video, and then create another trial with a different condition case? And how can I set the random option? Or in one trial use all the images and the video? Below is an option I was trying but I don’t know if the sequence is correct.


Thanks in advance for your help.
Best regards.

Hi,

There might be more elegant solutions that I can’t think of right now, but spontaneously I would be leaning towards the approach shown in the attached file. The idea is to have separate routines for the images and the video and to stop the routine from running that is not required on a current trial, based on a column called trlType in your condition file.

Hope this helps.

Jan

img_vs_video.psyexp (22.2 KB)
input.xlsx (9.0 KB)

Thank you so much for your help. I’ll work on the details, but it actually works very well.
Thanks again.

1 Like