[open] issues with time_response in form_multiple_choice
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
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
Hi,
Thank you for your answer!
Here I post two screnn shots of my experiment, let me know if you need something else.
Thanks,
Anais
Hi Anais,
The variable you have marked just gives the time stamp of this
form_multiple_choiceelement. So even, if it wouldn't giveNA, it wasn't the reaction time. So computing the reaction time by yourself is probably the best you can do. However, astime_response_stimulationalways givesNA, you can't use it to calculate the difference between the onset of themultiple_choice formand the current time. So your calculationcurrent_time - starting timeis essentiallyNA - some number, which won't give a proper result.What you can do instead is placing another
inline_scriptjust before themultiple_choice_form, in which you sample the time as save it asstarting timeand anotherinline_scriptright after the form, in which you do the rest of your calculation. Does this make sense to you?Good luck,
Eduard
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