if block sample time error
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, im running an ifblock and if action system, with an MPC controller. IM getting the following error related to sample time, which if i can sort it out will be really helpful
any insights or solutions to this?
0 件のコメント
回答 (1 件)
Brian
2022 年 11 月 18 日
All blocks in an If Action Subsystem block must execute at the same rate as the driving If block. You can satisfy this requirement by setting the sample time parameter for each block to either inherited (-1) or the same value as the If block sample time.
In your case, it seems like enabling the "Inherit sample time" from the "Others" tab of your MPC Controller's block options may also help resolve this.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Controller Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!