Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

set time limit

zsczsc Posts: 32

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

  • sebastiaansebastiaan Posts: 2,764

    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

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.