Erro due to different sample time

1 回表示 (過去 30 日間)
stephane teiguim
stephane teiguim 2020 年 5 月 19 日
回答済み: Sameer 2025 年 5 月 6 日
Hello evryone
My simulink miodel is not able to compile because i have inside of it two different block , the first block is scheduling at 20ms and the second is scheduling ar 100ms the problem is that the output of the first block is the input of the second one .I dont know how figure out wih it.
Thanks for your help

回答 (1 件)

Sameer
Sameer 2025 年 5 月 6 日
When the output of a faster block (20 ms) is used as the input to a slower block (100 ms), Simulink needs to know how to handle the rate transition. If not handled properly, you get compilation errors.
Insert a "Rate Transition" block between your 20ms and 100ms blocks. Connect the output of the 20ms block to the Rate Transition, then connect that to the 100ms block. Set the Rate Transition block’s output sample time to 0.1 (100ms).
Hope this helps!

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by