--
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/c6f52ff5-ef3f-44bb-a763-c81d75359bac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/f3c2a19f-1b45-4d8e-872e-89fb24a853c9%40googlegroups.com.
Does it mean I have to build one timeline for CUE, one for FIX, one for FIX – early press and one for TARGET-PRE-FEEDBACK-FEEDBACK-ITI, and then put them together to repeat multiple times?...
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/CAJKjTLAcgn5LLkDyV0Rqw9mktWrbY_oqfudPWDr%2Bx5EaY0_myA%40mail.gmail.com.
I tried that, but I’m having problems with calling the timelines. I define an empty one in the beginning, push instructions there, then create a trial structure as one timeline and push it on this general timeline. Simply nothing happens. What am I doing wrong?
/* create timeline */
var timeline = [];
/* define welcome message trial */
var focus = {
type: "html-keyboard-response",
stimulus: "The experiment is about to begin. Focus and when you are ready, press any key to begin."
};
timeline.push(focus);
/* define instructions trial */
var instructions = {
…
};
timeline.push(instructions);
/* stimuli */
var target_time = 300;
var trial_no = 0;
var tochange = 0;
var trials_per_block = 5;
/* CUE */
var CUE_M = {
…
}
/* FIX */
var FIX = {
…
}
/* FIX - early press
{
…
},
/* TARGET */
var TARGET = {
…
}
/* PREFEEDBACK */
var PREFEEDBACK = {
…
}
/* FEEDBACK */
var FEEDBACK = {
…
}
/* ITI */
var ITI = {
…
}
var timeline_exp: [CUE_M, FIX, TARGET, PREFEEDBACK, FEEDBACK, ITI];
timeline_exp = timeline.concat(timeline_exp);
timeline.push(timeline_exp);
/* start the experiment */
jsPsych.init({
timeline: timeline,
on_finish: function() {
jsPsych.data.displayData();
}
});