Main Content

Troubleshoot Task Overruns onAndroidDevices

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 theModelingtab of the toolstrip, selectModel Settings.

  2. On theHardware Implementationpane, select theEnable overrun detectioncheck box.

  3. ClickOK.

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 theSample timeparameter in all of your data sources or sensor blocks, from0.1to0.2.

Note

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