psychopy.org | Reference | Downloads | Github

Multiple Randomized Images from the Same Excel File


#1

Hi!

I am trying to run an experiment where I show two images on the screen at the same time from the same Excel stimulus file. When I tried to randomize the images by looping, what shows up is the same image twice. I was wondering how to fix this so that the images are different.
For some reason, the two images on the screen come up the same when instead I am supposed to get two different, random images presented on the screen.

Thanks!


#2

Hi @leorelizur, are the stimuli paired in sets or are pairs generated randomily?


#3

They are paired in sets


#4

right, then you will want two columns in your conditions file, where each column corresponds to one of your two stim and contains the paths for each stimulus. Then, for each image stim, you reference each column as a variable e.g., $column1 and $column2… The loop will handle the randomisation.


#5

perfect, thank you!