Howdy, Stranger!

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

Supported by

[open] issues with time_response in form_multiple_choice

edited February 2015 in OpenSesame

Hello,

I'm sorry to bother you but I tried all day to find a solution for my problem, and nothing works. I've got an experiment where subjects have to answer a question in a form_multiple_choice, called "reponse_stimulation". I can easily get subjects' choice, but I also want their reaction time. I first though that the logger could give me this information, but "time_reponse_stimulation" is always "NA"...I also unsuccessfully tried to insert inline_script after my form_multiple_choice with something I found on the forum :

# Determine the starting time of the form item:
starting_time = self.get("time_reponse_stimulation")

# Determine the current time:
current_time = self.time()

# The time it took to complete the form base is the 
# difference score between the two:
my_rt = current_time - starting_time

# Set the new variable for future use in the
# GUI (notably, the logger item):
exp.set("my_rt", my_rt)

I'm newbie in OpenSesame (as you can see), and a little lost...Thank you for your help!

Comments

  • edited 5:47AM

    Hi,

    This is weird. How does the logger output for your self defined reaction time look like?
    Could you maybe post a screen shot of the relevant parts of your experiment?

    Thanks,

    Eduard

    Buy Me A Coffee

  • edited 5:47AM

    Hi,

    Thank you for your answer!
    Here I post two screnn shots of my experiment, let me know if you need something else.

    image

    image

    Thanks,

    Anais

  • edited 5:47AM

    Hi Anais,

    The variable you have marked just gives the time stamp of this form_multiple_choice element. So even, if it wouldn't give NA, it wasn't the reaction time. So computing the reaction time by yourself is probably the best you can do. However, as time_response_stimulation always gives NA, you can't use it to calculate the difference between the onset of the multiple_choice form and the current time. So your calculation current_time - starting time is essentially NA - some number, which won't give a proper result.
    What you can do instead is placing another inline_script just before the multiple_choice_form, in which you sample the time as save it as starting time and another inline_script right after the form, in which you do the rest of your calculation. Does this make sense to you?

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 5:47AM

    Hi!

    Thank you so much for your help and explanation! I will try your solution this week end, hope it will work!

    Thank you,

    Anais

Sign In or Register to comment.