-
Hi all, I'm trying to make an experiment with the SRT plugin. I want to set 120 ms as pre_target_duration, and that the button press ends the trial. If I understand right, the "rt" will show the difference between the appearance of the stimulus and the corresponding button press. However, as there is a pre_target_duration of 120 ms, it is possible that the user reacts earlier than the appearance of the stimulus in the trial. Will this button press appear in the output file or it won't be recorded by default? Thank you very much, Teodora |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The plugin code doesn't start listening for a keyboard response until after the target appears, so any responses prior to that would be ignored. You can see in the source code that the keyboard listener is created after the target is displayed. If you want to capture anticipatory responses then you could modify the plugin and move the keyboard listener code outside the function that displays the target. The RT value would then be relative to the onset of the entire stimulus. You could correct the RT after the fact, or correct it in the plugin by subtracting the |
Beta Was this translation helpful? Give feedback.
The plugin code doesn't start listening for a keyboard response until after the target appears, so any responses prior to that would be ignored. You can see in the source code that the keyboard listener is created after the target is displayed.
If you want to capture anticipatory responses then you could modify the plugin and move the keyboard listener code outside the function that displays the target. The RT value would then be relative to the onset of the entire stimulus. You could correct the RT after the fact, or correct it in the plugin by subtracting the
pre_target_duration
parameter from the RT prior to the end of the trial.