Multitask conditionally executed subsystem
Diagnostic action to take when a subsystem might cause data corruption or non-deterministic behavior
Model Configuration Pane: Diagnostics / Sample Time
Description
The Multitask conditionally executed subsystem parameter specifies the diagnostic action to take if Simulink® software detects a subsystem that may cause data corruption or non-deterministic behavior.
Settings
noneSimulink software takes no action.
warningSimulink software displays a warning.
errorSimulink software terminates the simulation and displays an error message.
Tips
These types of subsystems can be caused by either of the following conditions:
Your model uses multitasking solver mode and it contains an enabled subsystem that operates at multiple rates.
Your model contains a conditionally executed subsystem that can reset its states and that contains an asynchronous subsystem.
These types of subsystems can cause corrupted data or nondeterministic behavior in a real-time system that uses code generated from the model.
For models that use multitasking solver mode and contain an enabled subsystem that operates at multiple rates, consider using single-tasking solver mode or using a single-rate enabled subsystem instead.
For models that contain a conditionally executed subsystem that can reset its states and that contains an asynchronous subsystem, consider moving the asynchronous subsystem outside the conditionally executed subsystem.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | error |
Programmatic Use
Parameter: MultiTaskCondExecSysMsg |
Value: "none" | "warning" | "error" |
Default: "error" |
Version History
Introduced in R2006a