End loop after 5 minutes

Hi @shabkr,

I think I might have figured out what the issues are here.

I have a “BIG loop” that I want to terminate after 14 seconds, regardless of which routines I am currently executing. As you know the two routines are the “response routine,” which consists of 3 nReps, and the “attention routine,” which has 2 nReps.

However, I noticed that when you spend more than a certain amount of time (e.g., say more than 14 seconds) in one of the “response routines”, and then click the next button, the routine transitions to the “attention routine” and then ends the BIG loop.

(I used the recent file that you attached to the thread)

Could it be possible that the code in the “Response routine” and the “Attention routine” are not compatible?

As always, thanks so much in advance!