set time limit
Dear all
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?
Thanks!
Zsc
Comments
Hi,
In OpenSesame 3.1 this is indeed not possible. However, forms have much improved in OpenSesame 3.2. Or they will improve, rather, because 3.2 is currently under development. If you're interested, you could give it a try though:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear sebastiaan,
thank you for your answer! Can I circumvent this problem by using an inline script (i.e. create a text input box using python and then add a statement in the
break ifoption of the loop)? I have tried to do so however the same problem occurs: I have to press the key in order to abort the experiment.Thanks,
Zsc
No, the break-if statement is evaluated only before a new cycle of a loop is executed. So it cannot break a trial off halfway. If you want to do this, you'll really have to use v3.2!
Check out SigmundAI.eu for our OpenSesame AI assistant!