How to let the response time results be presented the same way as it with RTBox before?
Hello everyone,
My previous priming experiment is used to test the response time with response box, so it was with python scripts which special for RTBox (shown at http://lobes.osu.edu/rt-box.php) and imported core to use as RTBox clock ( pictures followed:).
Now I want to modify this experiment to Online version which do not need RTBox anymore. First I deleted all the python scripts about the RTBox, the reaction time results were stored in milliseconds, but previously in seconds and accurate to 7 decimal places. So I want to know how can I change the scripts and let the results be presented the same way as before. Or maybe I can only define some variables at very first stage and do not need to delete all the python scripts such as 'prepare_sampler_and_variables' and 'present_Target_and_query_box_input' ?
Thanks!
Comments
Hi,
If you want to run your experiment online you have to translate your python inline scripts to javascript inline script. See here: https://osdoc.cogsci.nl/3.3/manual/osweb/#inline-javascript
Note, that not all functions are supported in the online version (check the same link for more info on that). For example, I think you have to run the keyboard_item, rather than creating a keyboard item in an inline_script.
The other part about your question I don't quite get. How do you want the results to be presented?
Eduard
Hi Eduard,
Thanks for your help!
The time response results which I got from Online Opensesame is e.g. 1234ms, but with the RTBox the result is like e.g. 1,1234567 s. I just want to know how to write the script so the time results can be accurate to 7 decimal places.
Nicole
Hi Nicole,
As far as I know Opensesame returns the response times with a greater precision that 1ms (in the data that I have, all time columns have far more than ms precision. I'd be surprised if this was different for you. Are you talking about the data in your logfile? Or variables that you online use in your experiment? I could imagine that the feedback item shows the average response time only with ms precision, as more detailed information wouldn't be informative anyway.
Eduard
Hi Eduard,
I am talking about the data in my logfile. Is it possible that through the scripts to change the decimal places? Thanks:)
Nicole
Hi Nicole. You could try to multiply the response times with a constant. So, to move from 1000ms to 0.001s, just run this code in the end of a trial (before logging):
var.response_time *= 0.001But you can also do that easily offline, after the experiment .
Good luck,
Eduard