MPC Controller の時間計測について
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SimulinksでMPC Controllerを使用しているのですが、MPC Controller内部の計算時間を計測する方法はありますか?
0 comentarios
Respuestas (1)
Toshinobu Shintai
el 21 de Mayo de 2020
PC上のMATLAB, Simulinkでモデルを実行した際の計算時間を測りたいということでしょうか。
その場合、以下のリンク先にあるtic、tocというコマンドを駆使することで測定できますが、0.1秒より短い計算時間を測定する場合には不正確です。その場合は推奨されません。
OSなし、またはリアルタイムOSを持つマイコンに実装した際の計算時間を測りたい場合は、Embedded CoderでモデルをPIL実行し、以下のリンク先に説明されている実行時間の可視化によって知ることができます。
Ver también
Categorías
Más información sobre Controller Creation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!