I am working on a mental rotation task with psychopy builder and everything looks good so far, except one thing: How can you end a looping routine after a specified time?
Background: The task is meant to cause interference for 6 minutes and must not be finished earlier, therefore I added many stimuli and want to end the loop/routine after 360 seconds.
I already tried to insert custom code in the End Routine area (with ‘trials’ being the actual name of the loop):
if t=360 trials.finished=True
When trying to run the experiment I always get ‘invalid syntax’, is it the t variable or what am I missing? Thank you in advance!