can we generate C/C++ code for closed loop Autotuner?

1 回表示 (過去 30 日間)
Dhaval Kapupara
Dhaval Kapupara 2020 年 4 月 29 日
コメント済み: Dhaval Kapupara 2020 年 4 月 30 日
Hello there,
I am using cloded loop Autotuner for motor controller application. I want to know that, can we get C/C++ code for simulink model "Closed loop PID Autotuner"?
If 'Yes' than how?
Thank you!!!
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 4 月 29 日
Yes. If you look at the bottom of https://www.mathworks.com/help/slcontrol/ug/closedlooppidautotuner.html you can see C/C++ Code Generation under Extended Capabilities.
Dhaval Kapupara
Dhaval Kapupara 2020 年 4 月 29 日
Thanks!! Walter Roberson.

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

採用された回答

Zhao Wang
Zhao Wang 2020 年 4 月 29 日
Let me answer the "how" part of this question. There is a documentation page about the complete workflow of using the Closed-Loop PID Autotuner block in real time:
Since there are usually multiple control loops in motor control, you may want to start with tuning one controller at a time.
Besides directly generating code, you can also run the autotuning algorithm on hardware using External Mode. Here is the relevant documentation page: https://www.mathworks.com/help/slcontrol/ug/control-real-time-pid-autotuning-in-simulink.html
You can try the external mode workflow by referring to another example about Open-Loop PID Autotuner: https://www.mathworks.com/help/slcontrol/ug/tune-pid-controller-in-real-time-using-open-loop-pid-autotuner-block.html
  1 件のコメント
Dhaval Kapupara
Dhaval Kapupara 2020 年 4 月 30 日
Zhao Wang, Thank you very much.

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

その他の回答 (0 件)

コミュニティ

Community Treasure Hunt

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

Start Hunting!

Translated by