I have a very simple Routine, where people just need to keep pressing spacebar.
I need to show in this Routine output, for every second, the total amount of times spacebar have been pressed.
if Time == Seconds [0]:
thisExp.addData('Pressões',Pressoes)
thisExp.addData('Time',Time)
Seconds = Seconds [1:]
It seems that using this code in every frame, only one line is saved on the output, with the total amount of presses right before the Routine ends (end called by time).
‘Seconds’ list is composed of every second on the routine, and created on experiment beggining:
Seconds = [*range(0, RoutineDuration, 1)]
Is it possible to make this work without having to call multiple routines with 1s duration each?