For each trial of this experiment, participants will first hear an audio sentence, then receive 1 of 3 cues randomly (“Non-word”: say the non-word displayed out loud, “Picture”: decide if the displayed picture is a living object? Yes/No decision, or “Nothing”: blank screen) which will indicate the type of task they need to do for a delay period of 14 seconds before recalling the sentence out loud. There will be 99 sentences altogether, to be randomly paired with 1 of the 3 cues (33 sentences for each cue – I’ve coded this component based on a previous answer, Randomize sentence with one of three cue types without repeating). I have built all the different tasks in PsychoPy, each as individual routines. But I am having troubles figuring out how to call the specific routine depending on the cue-type. For example, if the trial is a non-word task, the trial should be: 1) audio --> 2) Non-word [the screen will explicitly tell them which task it is] --> 3) “FLIMP” (then they will repeat ‘flimp’ every time the fixation cross appears), or if the trial is a picture task: audio --> Picture --> [picture] with response key activated (repeated with several pictures).
I have tried to modify this code (Switch between routines after varying numbers of trials of each) but cannot seem to figure out how to make it randomly switch, instead of e.g., 10 trials of non-word, then 10 trials of picture task etc. Any help will be appreciated. Thanks!