Main Content

Higher priority value indicates higher task priority

Priority ordering for real-time system targets

Model Configuration Pane: Solver

Description

Use this option to indicate whether a higher task priority is indicated by a lower value or a higher value in the real-time target. Code generation uses this information to implement asynchronous data transfers.

Settings

off (default) | on

Default: Off

on

The real-time system assigns higher priority values to higher priority tasks. For example, a task with a priority value of 8 has a higher task priority than a task with a priority value of 4.

Rate Transition blocks treat asynchronous transitions from a rate with a lower priority value to a rate with a higher priority value as a low-to-high rate transitions.

off

The real-time system assigns lower priority values to higher priority tasks. For example, a task with a priority value of 4 has a higher task priority than a task with a priority value of 8.

Rate Transition blocks treat asynchronous transitions from a rate with a lower priority value to a rate with a higher priority value as high-to-low rate transitions.

Recommended Settings

The table summarizes recommended values for this parameter based on considerations related to code generation.

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: PositivePriorityOrder
Type: string | character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2006b