Application warning:Execution required more than a sample block duration

Forum for software developers to discuss BCI2000 software development
Post Reply
lijing
Posts: 8
Joined: 08 Apr 2021, 22:28

Application warning:Execution required more than a sample block duration

Post by lijing » 28 Oct 2021, 22:03

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?

mellinger
Posts: 1208
Joined: 12 Feb 2003, 11:06

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

Post by mellinger » 01 Nov 2021, 14:21

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.

lijing
Posts: 8
Joined: 08 Apr 2021, 22:28

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

Post by lijing » 04 Nov 2021, 21:48

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests