Skip to content
Discussion options

You must be logged in to vote

Hi @vchopurian, the post_trial_gap isn't added to the RT, and it isn't saved anywhere in the jsPsych data by default. You can add it to the data in the trial's on_finish function, like this:

var iti = 1200;

var trial = {
  type: 'html-button-response',
  // other parameters...
  post_trial_gap: iti,
  on_finish: function(data) {
    data.post_trial_gap = iti;
  }
}

And as of jsPsych v6.3.0, there's a save_trial_parameters option that you can add to any trial, which lets you automatically save (or not save) any of the trial parameters in the jsPsych data.

var trial = {
  type: 'html-button-response',
  // other parameters...
  post_trial_gap: 1200,
  save_trial_parameters: {
    // save t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vchopurian
Comment options

Comment options

You must be logged in to vote
1 reply
@vchopurian
Comment options

Answer selected by vchopurian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants