フィルターのクリア

Use a simscape model as a plant model for use with the matlab feedback function

5 ビュー (過去 30 日間)
Leo Rogers
Leo Rogers 2023 年 5 月 16 日
コメント済み: Leo Rogers 2023 年 9 月 6 日
Hey all, Im using a simscape model as a plant for a feedback control problem, and the crux of my issue is i want to adjust the controller then run the simulation in a loop. Not adjusting the simscape plant just the controller, but recompiling the simulink model is way too slow even using rapid accelerator mode. And fast restart doesnt allow the controller model to be changed. I was wondering if there was a way to have the simulink simscape model be composed of just the plant, and apply it to the feedback loop in the matlab code. Or some way to allow me to run the simulink model and be able to change the controller while still using the fast restart and not recompiling the model. Thanks

採用された回答

Yash
Yash 2023 年 9 月 2 日
Hi Leo,
You can apply the Fast Restart Mode to the plant model only, by using the command:
>> set_param('plant', 'FastRestart', 'on');
In this way, if you are using the model references properly, you will be able to adjust the controller, and the plant model will be set to the Fast Restart Mode.
In case you want to update the plant model, set the Fast Restart Mode to off again.
Also, set the plant model reference to Accelerator Mode / Rapid Accelerator Mode so that it becomes even more faster.
  1 件のコメント
Leo Rogers
Leo Rogers 2023 年 9 月 6 日
Hey thanks a bunch for that, I'll give it a try at some point to fully confirm, I put that on the backburner. But seems like that puts me on the right track. Big thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by