OS: MacOS
PsychoPy version: 2022.2.5
How can I randomize my list of trials from my .csv file, but keep one trial (a “break”) at a fixed position and wait for a spacebar response until continuing onto the rest of the trials?
Each trial is 2.5 seconds, plus 1.5 sec ITI. Allowed keys are ‘1’,‘2’ for trials and the trials move on regardless of whether a key was pressed. but for the fixed trial, the allowed key is the spacebar, and I want it to stay on the screen until the participant presses space.
The closest I have gotten is by having a Fixed column in my .csv and randomizing the trials where Fixed=0. However, PsychoPy isn’t registering the spacebar press, but will register a ‘9’. Also, I would like to show the ITI (fixation X) after the participant presses space on the Fixed trial, but because my code sets continueRoutine to false if the ‘9’ is pressed, it doesn’t show the X. I thought about making the X a separate routine (it’s currently in the same routine as the trial stimuli), but I want to accept trial responses into the ITI/fixation, and moving the ITI to a separate routine just adds a blank screen until the key_resp is over, and then brings up the ITI.
If anyone has an easier idea of how to essentially randomize a list of trials and then split them into 2 halves with a break routine in the middle, please let me know!