Hello everybody. I am working on some experiments and I have some troubles to manage the loops around trials and condition. I did look at http://www.psychopy.org/builder/blocksCounterbalance.html
It does work for some of the simpler tasks I have, but it does not work for a couple of tasks in which a lot of the experimental features (like color, shapes and position) have to change time to time.
Specifically in a task I have the following things happening: a cue (saying which task the subject needs to perform), then there is a grid and a bunch of squares appearing in certain positions two at the time for 1 sec (total=4 seconds). At the end two grids are presented. One representing the sum on the squares seen before one with a mistake in the position of the squares. (then I have a jittered ITI, but I was able to manage it)
- In the WM condition the subject has to answer to which one between the two presented grids is the sum of the squares seen before
- in the control condition the subject have to say if a blue square (target) did appear or not during the trial.
I tried to follow the link above, so I have just one trial loop having $conds (which is a variable in the more external loop excel file) as condition. Then I have the external loops, having in the conds column the hyperlinks to my condition excel files. In the WM conditions I just Hyde the target using the background colours and so for the answer). So exactly as in the example I have an internal loop “trial” and an external one “condition”.
The experiment does work just if the two conditions excel files have just one row.
The squares positions and the target position must change necessarily for each trial. If I create a list of plausible positions it keeps looping for ever on the trials until it did not read all the excel file, so it does not switch between a condition and another.
I tried to program the two condition excel files to randomize the positions in order to have just a row but it won’t update automatically, so basically by having just one row I am able to run the experiment and randomize my two conditions between them but if I do so I just can it shows the same two configurations of stimuli (one for the control and one for the WM) for ever, so I can not randomize between my configurations.
Any suggestions about how to overcome that issue? I am ok in creating a list of positions if needed, but I do not know how to say Psychopy to read a row at the time. I have another task (Tower of London) which it is also more complex since the stimuli configuration can not be just random, but must be conditional to some task rules, so in that case the use of lists of specific configuration is mandatory for me.