Issues with timers in the generated code after moving from single rate to multirate model

2 ビュー (過去 30 日間)
Sreejith Mana
Sreejith Mana 2022 年 11 月 15 日
編集済み: Amish 2023 年 12 月 19 日
Hello Community,
I had a model that ran in a single rate of 100ms which I use to generate the C code using Embedded Coder.
I recently did an update to the model such that it is a multi-rate model comprising of both 10ms and 100ms rates.
But the code generated from this multi-rate model behaves differently. In the sense, all the timers used in the code is now wrong.
For example, previosly there was a wait time of 2 seconds in a timer - in the multi-rate model this timer is taking more than 5 seconds althoug nothing is changed in the model.
Can anyone help me figure out where the issue is?
Just a side note - my model contains referenced subsystems and the timers are running in them.
Any lead to solve the issue is much appreciated. Thanks.
Best regards,
Sreejith
  1 件のコメント
Amish
Amish 2023 年 12 月 19 日
編集済み: Amish 2023 年 12 月 19 日
Hi Sreejith, Could you share the simulink model? That might provide more insight towards helping you

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by