このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
Detect Data Transfer Issues in a Model
You can detect these data transfers issues in a model by using Simulink® diagnostic model configuration parameters:
| When to Use | Parameter |
|---|---|
| Multitasking model includes data transfers that apply invalid rate transitions. | Multitask data transfer |
| Rate transition occurs between blocks that represent callable functions in a model that is configured for single-tasking execution. | Single task data transfer |
| Check for tasks that have the same priority and can preempt each other on the target system. | Tasks with equal priority |
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 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 might 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.