Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Recording Response with Form_Text_Input

edited July 2016 in OpenSesame

I'm using a form_text_input to record a multikey response from participants, but I also want to record the amount of time it takes for the participant to write a response. If I put a keyboard_response item after the form_text_input, the logger shows only the response time and not what the written response actually was. But if I don't have a keyboard_response, the logger only shows the written response and not the response time. Is there any way to have both the written response and the response time recorded?

Thanks!
-Morgan

Comments

  • edited 4:18PM

    Hi Morgan, you could insert two inline scripts in your trial sequence, one before and one after the form. In the run-phase of the first one, you create the variable start_time = self.time(). In the second one, you create the variable response_time = self.time() - start_time.

    Cheers,

    Josh

  • edited 4:18PM

    For it to be a variable, do I have to write var or something before that script? If I just put it in as you wrote I'm still not getting a response time in the logger. Sorry for the inconvenience/stupid question, I don't know Python!

  • edited 4:18PM

    Hi Morgan, my apologies, I should have specified this. If you name your second variable exp.response_time rather than response_time, you should be able to see it in the logfile - that is, if your logger is set to log all variables automatically. Without the exp part, your variable wouldn't be 'available' to the whole experiment (including logger), but only within the inline script.

    Hope this helps

    Josh

Sign In or Register to comment.