keypress or timeout
Morning everybody,
(I hope I posted this in the right section)
I would like to propose an online experiment (basic lexical decision task) but I saw that the inline_ javascript elements are preferred to inline_script (Python).
The goal is that the participant to be able to respond during the stimulus onset while collecting the "right" reaction time. So, I used 2 keyboard for that.
I worked from a script proposed in this discussion: https://forum.cogsci.nl/index.php?p=/discussion/312/solved-keypress-or-time-limit
In this present experiment stimuli are displayed for 200 ms and 4000 ms are available for response.
I wanted to make sure that this method is right for you ?
Best,
Christophe
Comments
Hi Christophe,
I think it is fine like that. To be perhaps a little more precise with respect to the timing, you could use not a hard coded
+200, but add the time of the first response item as onset (the variable is probably calledtime__200) and subtract it from the current time. Do you know what I mean.Eduard
Hi Eduard,
I thank you. It's a very good idea. In this case I change the name of the keyboard "200" with "keyboard1".
So,
vars.response_time = vars.response_time + time__keyboard1
Firstly, this would make it possible to take into account small variations that sometimes occur in computer's times.
Secondly, it's a cheaper code because it allows me not to systematically modify lines in the inline_javascript to change the display times.
So it's better than what I did and it helps me.
Thank you again.
Christophe