I would like to use a scheduler in System Composer. I have 4 different taks (T1,T2,T3,T4), , each one with its specific periodicity. I would like to know how to create a scheduler to define the different priorities and periodicities of the different tasks.

 採用された回答

Josh Kahn
Josh Kahn 2023 年 7 月 18 日
編集済み: Josh Kahn 2023 年 7 月 18 日

0 投票

Hi @Amine,
To use the schedule editor, first, ensure that your architecture model was created using the "Software Architecture Model" template:
In the software architecture, you can launch the schedule editor from the Design section of the MODELING tab. Note, You can also specify periodicity in the Functions Editor.
This scheduler is for simulation only. If you are looking to generate code from your scheduler, you can include the software architecture as a model reference in simulink and then hook in a scheduler created in simulink or stateflow. Here is an example:

4 件のコメント

Amine
Amine 2023 年 7 月 18 日
Hi Josh. Thank you very much for your answer. I have well accessed to the schedule editor. However, it is for the next steps that I am stucked. I don't know what to do when I am in the Schedule Editor. I found videos on the subject but every time they have already some diagram in the sceduler while I have nothing
Josh Kahn
Josh Kahn 2023 年 7 月 18 日
The schedule editor shows existing functions that can be run. If it is empty, then you first have to create functions or link your components to simulink behaviors.
Here is a link with more information on authoring functions:
If you already have linked simulink behaviors and the schedule editor is blank, try updating the diagram (ctrl-d).
Amine
Amine 2023 年 7 月 19 日
Okay I have linked my components to Simulink behaviors and now it is working. Thank you very much!
Josh Kahn
Josh Kahn 2023 年 7 月 19 日
Great! Happy to help.
Josh

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で System Composer についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 7 月 17 日

コメント済み:

2023 年 7 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by