Main Content

Detect Data Transfer Issues in a Model

You can detect these data transfer issues in a model by using Simulink® diagnostic model configuration parameters:

Detect Invalid Data Transfer Rate Transitions in Multitasking Models

To detect invalid data transfer rate transitions in models configured for multitasking execution, set the parameter Multitask data transfer to warning or error. Depending on the parameter setting, after detecting an invalid rate transition, Simulink displays a warning or stops the simulation and returns an error. By default, Simulink returns errors.

Detect Data Transfer Rate Transitions in Single-Tasking Models

To detect data transfer rate transitions in models configured for single-tasking execution, set the parameter Single task data transfer to warning or error. Depending on the parameter setting, after detecting a rate transition, Simulink displays a warning, or terminates simulation and returns an error. The default parameter setting is none, in which case Simulink takes no action.

The Single task data transfer parameter setting affects Rate Transition blocks that you insert manually or that Simulink inserts when you select model configuration parameter Automatically handle rate transition for data transfer. The inserted blocks can change simulation results and block sorted order.

Detect When Tasks That Have Same Priority Can Preempt Each Other

On some target systems multiple tasks that have the same priority can preempt each other and produce unpredictable results. This condition can occur when an asynchronous task represented in a model has the same priority as an asynchronous target system task.

To detect this condition in a mode, set model configuration parameter Tasks with equal priority to error.

See Also

Topics