set time limit
For my experiment I programmed an unsolvable angram task. In this task participants are shown scrambled letters and they are asked to unscramble the letters in order to create a meaningful word. What they don't know is that the angrams are unsolvable. I want to measure how long the participants try to solve the angram until the move to the next one.
I want to set a time limit for the task so when participants try to solve the anagrams for longer than 15 minutes the task will end automatically. For this task I used a simple
form_text_input. I figured I could add an inline script before the loop with simple codes in the prepare phase:
exp.set('start_time', None) and in the run phase:
exp.set('starttime', self.time()) and then add a statement in the
break if option of the loop, e.g.:
=self.time() - self.get('starttime') > 900000. The problem is that the task won't end automatically with this procedure. Only when the time is exceeded and the participant presses the enter key the task will abort.
Is there a way to end the task without the participants having to press a key?