Skip to content
Discussion options

You must be logged in to vote

I've made custom edits to end_trial() function and I think it works.

The main change inside that function is:

      // if responses_ends_trial_after_stimulus_duration is true wait until the stumulus_duration is over
      if(trial.responses_ends_trial_after_stimulus_duration){
        var remaining_time = trial.stimulus_duration - response.rt;
         jsPsych.pluginAPI.setTimeout(function() {
          // clear the display
          display_element.innerHTML = '';

          // move on to the next trial
          jsPsych.finishTrial(trial_data);
        }, remaining_time);
      } else {
        // clear the display
        display_element.innerHTML = '';

        // move on to the next…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@becky-gilbert
Comment options

@JAQuent
Comment options

@becky-gilbert
Comment options

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