Page 1 of 1

Application warning:Execution required more than a sample block duration

Posted: 28 Oct 2021, 22:03
by lijing
After using the new version of bci2000, this warning appears in bci2000.
Application warning, ***Task: ***Task::Process: Execution required more than a sample block duration.
Does it matter?

Re: Application warning:Execution required more than a sample block duration

Posted: 01 Nov 2021, 14:21
by mellinger
It matters if it keeps repeating constantly. If it appears only intermittently, e.g. at start/resume, it is a hint that you should look at how your application module spends time in StartRun(). Make sure that any CPU intensive initialization is done during your application's Initialize() function rather than StartRun(), if possible.

Re: Application warning:Execution required more than a sample block duration

Posted: 04 Nov 2021, 21:48
by lijing
Thank you for your reply. It only appears once at the beginning of running, and we have put the CPU intensive initialization code into the initialize() function.