주요 콘텐츠

Tasks with equal priority

Diagnostic action to take when tasks with equal priority can preempt each other

Model Configuration Pane: Diagnostics / Sample Time

Description

The Tasks with equal priority parameter specifies the diagnostic action to take if Simulink® software detects two tasks with equal priority that can preempt each other in the target system.

Category: Diagnostics

Settings

warning (default) | none | error
none

Simulink software takes no action.

warning

Simulink software displays a warning.

error

Simulink software terminates the simulation and displays an error message.

Tips

  • This condition can occur when one asynchronous task of the target represented by this model has the same priority as one of the target's asynchronous tasks.

  • This option must be set to Error if the target allows tasks having the same priority to preempt each other.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionnone or error

Programmatic Use

Parameter: TasksWithSamePriorityMsg
Value: "none" | "warning" | "error"
Default: "warning"

Version History

Introduced in R2006a