MPC Controller の時間計測について
Ältere Kommentare anzeigen
SimulinksでMPC Controllerを使用しているのですが、MPC Controller内部の計算時間を計測する方法はありますか?
Antworten (1)
Toshinobu Shintai
am 21 Mai 2020
0 Stimmen
PC上のMATLAB, Simulinkでモデルを実行した際の計算時間を測りたいということでしょうか。
その場合、以下のリンク先にあるtic、tocというコマンドを駆使することで測定できますが、0.1秒より短い計算時間を測定する場合には不正確です。その場合は推奨されません。
OSなし、またはリアルタイムOSを持つマイコンに実装した際の計算時間を測りたい場合は、Embedded CoderでモデルをPIL実行し、以下のリンク先に説明されている実行時間の可視化によって知ることができます。
1 Kommentar
Endo Nobuaki
am 23 Mai 2020
Kategorien
Mehr zu Model Predictive Control Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!