psychopy.org | Reference | Downloads | Github

Using two conditions files

#1

Win10
3.06
Standard Standalone

I’m creating a dot probe task and trying to alternate the positions of my two images as well as the position of the dot. I’ve done this in two conditions files as I wanted their positions to be independent of each other. However, whilst both work separately (i.e. images are positionally randomized when its corresponding condition file is the only one used and the dot is randomly positioned when its corresponding conditions file is the only one used) when I try and use both conditions files together via a second loop one just doesn’t work.

Does anyone have any idea why? Thanks

0 Likes

#2

“one just doesn’t work” does not give us anything to go on here. As a guide to asking an effective question on a forum like this, ask yourself "could someone on the other side of the world understand my situation knowing nothing other than what I wrote down for them? "

  • tell us exactly what you want to happen.
  • show us what you did.
  • show us what exactly went wrong.
0 Likes

#3

Hi, thanks for responding.

By ‘one just doesn’t work’, I mean the intended effect of the conditions file, which is to move a dot in my task to alternative positions (as specified by the conditions file) does not work/happen when placed in a loop with a second conditions file. Or alternatively, the effect of the second aforementioned conditions file, which is to swap the positions of the images in my study will not happen/work, depending on which conditions file was put in first. I would like both of these conditions files to work within the same routine.

To implement both conditions files, I put in 2 loops around the same routine, one specifying where the dot should move, and one specifying to swap the positions of the images. I have entered $eval(“the corresponding heading”) in the positions column in order for the variables to get the positions from the conditions files.Both of these conditions files work when they are in the only loop around the target routine.

I hope this properly clarifies my issue, thanks.

0 Likes

#4

OK, hierarchical (i.e. nested) loops won’t work here. The inner loop will cycle through all of its conditions, and only then will the next iteration of the outer loop run, meaning that effectively its conditions are static until the inner loop restarts.

What you should do is have a single conditions file that incorporates all possible crossed conditions of those variables, and connect that to a single loop. The independence comes from specifying all possible combinations, and presenting them in random order if required.

0 Likes

#5

Thanks very much for the helpful advice.

0 Likes