keyboard_response
Hello,
I would like to run online a short version of my previous experiment described in Scarpina et al. (Frontiers in Psychology 2018, 9, 494). In simple words, participants have to press the spacebar when they see the target. The program collects “response__keyboard_response” (i.e. None or Space) and the “response_time__keyboard_response”.
To import my experiment on Jatos, I followed the instructions presented very clearly by Sebastian in his tutorial (https://osdoc.cogsci.nl/3.2/manual/osweb/).
So, when the experiment runs on Opensesame on pc, everything works and I am able to find my data.
However, when I look the data from Jatos, it seems that the script is not able to collect the response__keyboard_response; thus, I have no information about 1. If the subject presses the spacebar, and 2. when in terms of Reaction Times.
Do you know if there is any problem with keyboard_response when the experiment runs on Jatos?
Thank you,
Federica
Comments
Hi Frederica,
OSWeb (this is not related to JATOS, which is the server) indeed doesn't register response variables with the name of the item suffixed. That is, the response will saved as
responsebut not asresponse_[item name], as it would on the desktop.If there's only a single item that collects a response, that's no problem, and you can simply use the
responsevariable instead.If there are multiple response items, this does pose a problem, because the second response item will overwrite the
responsevariable of the first. In that case, you can add a shortinline_javascriptitem after the response item with the following code in the Run phase:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!