--
You received this message because you are subscribed to the Google Groups "jsPsych" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jspsych+u...@googlegroups.com.
To post to this group, send email to jsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/80fd1d64-86d4-40aa-bec6-e790db8ff0f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/d851fec4-6202-4bb8-9ce1-e1dae9846abf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/d41aa64a-a787-4cea-ac96-c744ed13647e%40googlegroups.com.
Hi Arnold,I would trust the RT more than the time elapsed. Even though the overhead of starting and stopping a trial is small, it's nonzero. A few ms difference doesn't surprise me.Actual display durations is tougher. I think time_elapsed will be a reasonable approximation and might correlate with actual display time, but I wouldn't use it as a definitive measure. Getting actual display times from JavaScript isn't possible, because there is no API that gives access to the actual paint time on the monitor.To get actual display times, you need to stick a photocell on the monitor and measure the changes in brightness. We are actually working on some significant improvements to the code that jsPsych uses to time display durations, and are doing exactly this to validate the new approach. We also measured the accuracy of jsPsych's current display code, and generally found that somewhere around 70% of the trials will have the exact intended display duration (assuming the duration is a multiple of the frame rate) and the remaining 30% will be +/- one frame, and very rarely two frames.Cheers,Josh
On Sat, Jun 30, 2018 at 5:11 AM <arnold...@gmail.com> wrote:
Hi Josh and community,--I have 2 questions regarding the exact timing of the stimuli display and RTs.
1. I noticed that there is a difference between the RT that jsPsych recorded and the number that I get if I subtract the time_elapsed value of the previous trial from the time_elapsed value of the current trial. What I get from calculating based on time_elapsed is always a bit longer than the RT given by jsPsych. During the first trials it is only 1-3 ms difference, but by trial 200 it becomes 7-10 ms difference.I was wondering, what causes this difference and why does it increase over time?
Looking into the jsPsych code, I see that rt is actually calculated by subtacting start_time from key_time. Does it mean there is some lag before display of the next trial? So then the RT given by jsPsych is to be trusted more?2. I actually ran a priming study with jsPsych. I set the text that served as a prime to be displayed for 83 ms. Now I would like to calculate the actual duration of the prime stimulus for each participant so that I know how long an average delay was. Can I do that by simply subtracting the time_elapsed from previous trial like I described for RTs?
Again, here too I see that the lag increases by some 8-10 ms by trial 200 or so.Thank you very much for your answers beforehand!
Arnold
You received this message because you are subscribed to the Google Groups "jsPsych" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsp...@googlegroups.com.