Execution of function during post trial break #774
Answered
by
jodeleeuw
prajwalgatti
asked this question in
Q&A
-
Hi, all I want to execute a stimulus generation function (which takes about 800-1200ms to execute) during the inter-trial interval of 2000ms. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
jodeleeuw
Jun 22, 2020
Replies: 1 comment 1 reply
-
Maybe with the var trial = {
type: 'call-function',
func: function(done){
setTimeout(done, 2000); // end the ITI after 2000ms
generateStimulus();
},
async: true
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
prajwalgatti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe with the
async
option for thecall-function
plugin? (docs here)