psychopy.org | Reference | Downloads | Github

How to make a task containing different type of stimulis

Hello everyone, I’m using version 1.85.4
I have some issues trying to make a task containing both images and words shown randomly (my experiment aims the recognition of emotion),
I managed to create a loop and put my excel file with images but I’m stuck with the “word” part. I have an excel file for the word part but I don’t know where to put it and therefore don’t know how I could mix the “image routine” and the “word routine” in order to have them running as one task.
If someone could explain how I can set this type of task you’d save me

Hi @Demeh, to do this you can include both the word and text components in the same routine. In the attached example, there is a text and shape stimuli, and their parameters are defined in the wordPics spreadsheet where each row represents a single trial. The word is defined using variable called yourText from the spreadsheet and is updated on “every repeat” - or trial. If you do not want a word shown, just add a single space to a cell. The image is pre-defined, but the opacity determines whether or not to show the picture, and this is defined using the yourPicOpac variable from the spreadsheet, and is updated on “every repeat”. To use the spreadsheet variables, insert a loop into the flow in builder, and point the Conditions parameter of the loop to your conditions spreadsheet. Example attached.

wordPics.psyexp (6.1 KB)
wordPics.xlsx (8.2 KB)

Thank you very much ! I’ll do that and if I have other question I’ll let you know

Actually I tried what you told me, but your manipulation is not what I was asking, I’m sorry I wasn’t clear enough.
I wouldd like to know how to create an experiment (perception of emotions) with a task containing different type of stimuli (text and images) but not showing at the same time, I would like them to show randomly
For example one random sequence could be : img img word word word img word img

Assuming that either images or text appear at the center of screen, and the images are not presented fullscreen what about the attached conditions file. Note, the file only tries to show you the logic.

So you have both image stimulus and text stimulus in the same routine, both appear at the same time but you make either of them invisible in each trial.

conditions.csv (282 Bytes)

Hi! I am interested in doing sth similar in one of my experiments but adding the condition that when the image appears, a key response should follow as an attention check, also placed randomly along the trials. So, sth like sound sound - image+button press - sound soun sound sound sound - image+button press
Is there a way through the Builder to do it, without the response component to appear after both images and sounds?

Thank you very much in advance!