Setting a minimum time at the trial level #3260
-
In a The parameters of an Is there any straightforward way to do this? In #886 the following solution is given by @vijaymarupudi : make two trials, with the first one displayed for the duration I want and not accepting any response, and the second one recording a response. I am wondering if there is a better way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can just:
Example given below: let jsPsych = initJsPsych();
let trial = {
type: jsPsychHtmlKeyboardResponse,
stimulus: 'Minimum rt: 3000 ms',
choices: ['Symbol'],
on_load: function () {
jsPsych.pluginAPI.getKeyboardResponse({
callback_function: function () {
jsPsych.pluginAPI.keyDown('Symbol');
},
valid_responses: 'ALL_KEYS',
minimum_valid_rt: 3000,
});
}
};
jsPsych.run([trial]); You can, of course, use a much more secure way by setting |
Beta Was this translation helpful? Give feedback.
You can just:
choices
to something probably no one would have on their keyboardon_load
with aminimum_valid_rt
choices
key in the callbackExample given below:
You can, of course, use a …