Good afternoon,
I am running a task where I would like participant’s to complete as many “rounds” (loops) in a 60 minute period.
Then I would like the whole task to End, regardless of what routine they are in at the time. How can I set a clock to end an entire Experiment not just a single routine=
This is the code I have tried so far:
In the first routine I added to Begin Experiment:
myClock = core.Clock()
After the instructions, in the first routine I added to EndRoutine:
myClock.reset()
(so the time taken to read the instructions does not contribute to the 60 minutes of the task.
Then in the final routine within the loop of my testing block I added:
if myClock.getTime() > 300:
trials_2.finished = True
Please note trials_2.finished is the name of my loop.
And I chose 300 seconds to test the clock feature in 5 minutes to save myself time.
Any advice would be greatly appreciated