OS (e.g. Win10): Mac PsychoPy version (e.g. 1.84.x): v2020.2.10 What are you trying to achieve?:
I am trying to create an experiment whereby the trial stimuli differs depending on what condition participants get assigned to (i.e., condition A, B, or C) but I would also like to counterbalance the subtasks participants are exposed to within a block. For example, regardless of what condition they are assigned (I.e., A, B, or C) they will be randomized to either complete a math task or vocab task within the same block.
My problem is that I do not know how to do both of these tasks within a loop structure itself. Should the condition randomization be in an inner loop and then the randomization of subtrial tasks be in the outer loop or vice versa? Or is there another approach which is better?
Firstly, I notice that you are working on an older version of PsychoPy - if you are at the start point of making a task I highly recommend updating to 2021.2.3 - this will be much smoother and have newer features!
Does each group have a different math/vocab task? but within you group you want it to be random if the math or vocab is presented first - is that correct?
However, I want to randomize what participants do each trial regardless of what group they have been assigned to, but I am unsure on how to do this in PsychoPy. For example, for the first five trials they could have done:
Math Task
Vocab Task
Vocab Task
Math Task
Math Task
I tried to randomize what subtasks subjects would complete each trial by adding an outerloop which links to an excel file that states whether a Math trial or Vocab Trial should be shown Subtasks.xlsx (8.7 KB)
(counterbalancing subtasks in: Blocks of trials and counterbalancing — PsychoPy v2021.3). However, my problem is that the subtasks are still not switching across trials. Experiment.psyexp (29.3 KB)