how do I change a task priority in simulink

6 ビュー (過去 30 日間)
Paul Sanfilippo
Paul Sanfilippo 2018 年 11 月 7 日
コメント済み: Paul Sanfilippo 2018 年 11 月 8 日
With periodic tasks is there a way to manually set a higher rate task to lower priority than a lower rate task? Is task priority only set based on higher frequency tasks having higher priorities?

回答 (1 件)

Arunkumar M
Arunkumar M 2018 年 11 月 8 日
By task priority, do you mean execution order? If yes, you can activate in Menu: Display -> Blocks -> Sorted Execution Order to view the order of execution. You can also change the execution order through properties.
  1 件のコメント
Paul Sanfilippo
Paul Sanfilippo 2018 年 11 月 8 日
No, I want to change the priority of my actual threads on the target OS so that a lower frequency thread is higher priority than a higher frequency thread. I think the block order is just a static ordering within each thread. It looks like by default it makes higher frequency threads higher priority. Priority gets assigned based on ordering of frequencies in an array in ertposixthread.tlc so I think I need to change the thread frequency ordering in the model if that is possible.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by