OS (e.g. Win10):
PsychoPy version (2023.1.3):
What are you trying to achieve?:
I’m trying to build an experiment that contains 90 images of two types (60 Negative and 30 Neutral) and two types of instructions: “View” (i want it to be displayed 60 times) or “Reappraise” (i want it to be displayed 30 times). The participants will see one image for 1 second, then an instruction will appear in front of the image and disappear after 2 seconds, so that the image continues for more 6 seconds, like this:
This will happen 90 times, and every repeat will choose a different image and one of the two instructions, until all the images are shown once. I want the two variables “Image” and “Instruction” to be independently randomized. For example, image_34 can be matched with “View” for the first participant, but for another participant, it will be matched with “Reappraise”, and so on.
What did you try to make it work?:
I created an excel file with both variables (I used “View” 60 times and “Reappraise” 30 times):
And set the loop to random and referred the image componente to the column “Image” of the excel file:
I added a text component and set the text to be $Instruction (second column of the excel file):
What specifically went wrong when you tried that?:
The variables are tied to each other. Randomization chooses one row, and displays the image and instruction of the same row. I want the two variables to be independently randomized (for each participant), for example: shows image from row 2, but instruction from row 30.
I know there is a demo of independent randomization. And i know the variables should be in different files. However, i don’t know how to do it, since i want both variables to be displayed in the same routine. I also know that there is a way to simultanously run two routines. However, i’m new to both Psychopy and programming in general, so i’m not understanding much…