Autotune PID c code generation (for 32 bit MCU)

I was reading simulink coder & new to matlab.
Is it possible to generate c code for autotuning by matlab & then use in 32 bit MCU compiler.
If yes, can someone points to exact app notes/video lectures which there is explained.

3 Comments

I think it is possible with the support package https://www.mathworks.com/hardware-support/renesas.html
But it looks to me as if would depend on whether your purpose was to generate code that could autotune and run any plant it was attached to, or if instead you would use a separate phase of tuning for a particular plant and then generate code corresponding to that variety of plant.
Sorry i had missed the reply somehow in mail notifications.
Can the autotuner block in matlab can be converted into C languagae using matlab coder product?
For example this is what we intend to use-autotune pid in real time. No outside PC, A renesas MCU will be used. But issue is can matlab convert its autotuner block into C language?
Yes, the documentation specifically says that you can generate code from the block and deploy to hardware.

Sign in to comment.

Asked:

on 18 Dec 2019

Commented:

on 9 Jan 2020

Community Treasure Hunt

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

Start Hunting!