psychopy.org | Reference | Downloads | Github

Stroop task in event related design

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10

What are you trying to achieve?:

I’m trying to make an event related(trial by trial) stroop task. So, I want stroop tasks to appear for half of the trials, and not to appear for rest of the trials.

Two numbers of different size and value will appear in ‘wm_s’ routine each at left and right corner of the screen and they are designated as text_13 and text_14.(For example, big 2 at left and small 5 at right)
And in ‘wm_r’ routine, I will show one word, either ‘value(값)’ or ‘size(숫자크기)’ which is text_15 and ask them to press left or right according to which side’s value/size was bigger.(For example, if value appears, then the participant will have to press ‘right’ because the value of 5 is bigger than 2)

For this, I have put
text_13 - size $si1 text $str1 opacity $p
text_14 - size $si2 text $str2 opacity $p
text_15 - text $strque opacity $q

And at begin routine tab in wm_s i have put

import random
stroop=[1,2,3,4,5,6,7,8,9]
si=[0.06,0.2]

stroop1= random.sample(stroop, 2)
stroop2=random.sample(si, 2)

str1=stroop1[0]
str2=stroop1[1]
si1=stroop2[0]
si2=stroop2[1]

At the begin routine tab in wm_r, I have put

import random
strques=['값','글자크기']
strque=random.sample(strques,1)
strque=strque[0]


if strque=='값':
    if str1>str2:
        strans='left'
    if str1<str2:
        strans='right'
if strque=='글자크기':
    if si1>si2:
        strans='left'
    if si1<si2:
        strans='right'

The problem is that, I want to synchronize the opacity of text_13, text_14, text_15, so that when text_13 and text_14 appears, then text_15 also appears and vice versa. However, now texts in those two routines doesn’t synchronizes. Can you help me out?

This is the workflow of my experiment

This is the condition file I inserted in trials_2. question/answer are the items that goes in pavinst_s and pavinst_r routine.

What did you try to make it work?:

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.