OS: Win11
PsychoPy version : PsychoPy 2023.2.3
My purpose:
- Design 4 loops, each containing 30 trials, each trial runs the same program but presents different stimuli.
- The 120 trials, which could have been combined into a single loop, are divided into 4 loops due to participant breaks interspersed between them.
My issue:
- Participants may exit midway through the experiment, causing subsequent trials to restart from the beginning.
- I want to use the session provided at the beginning to determine which loop of the trial the participant has left to complete.
What I have done:
as you can see, I intend to assign a Block_number for each loop, which will be toggled 0/1 based on the session identifier. Consequently, at the beginning of each loop, I can check whether to proceed based on the Block_number value.
But this cannot work, the program is running as if I hadn’t set any code yet. By the way, I’ve successfully run each loop. I just want to use a control to confirm whether the loop should be executed or not.
So is there any solution or is there a simpler and more efficient way for me to achieve this task?
I’m new to PsychoPy and this forum, so I appreciate any help I can get. Thanks in advance!