Hello Michael, thank you very much for your reply. I am sorry for responding only now, I was participating on a conference last week, and had no time on the computer.
The code you said worked perfectly thank you. However I would like to know if there is a variable that consider the entire time of the experiment and not only the time in a trial.
The way it is now, if there is any trial and it lasts for 60 seconds it ends. But is there any variable that I could show many different trials and it will consider the complete time since the experiment started? Or even it counts the time of my loop?
Thank you very much again,
Best wishes,
João