Main Content

Troubleshoot Task Overruns on Android Devices

You can configure a model running on the Android™ device to notify you when a task overrun occurs.

Standard scheduling works well when a processor is moderately loaded. When a processor becomes overloaded, the scheduler may run a task before the previous instance of the same task has completed. The result is a task overrun.

To enable overrun detection:

  1. In the Modeling tab of the toolstrip, select Model Settings.

  2. On the Hardware Implementation pane, select the Enable overrun detection check box.

  3. Click OK.

When a task overrun occurs, the display on the device shows an “Overrun” error message until you stop the model.

To fix an overrun condition:

  • Simplify the model.

  • Increase the sample times for the model and the blocks in it. For example, change the Sample time parameter in all of your data sources or sensor blocks, from 0.1 to 0.2.


External mode increases the processing burden of the model running on the Android device. If the software reports an overrun, disable External mode.