MATLAB: How to tune the PID parameters of the PMSM Field-Oriented Control block

SimscapeSimscape Electronics

How can I tune the PID parameters of the PMSM Field-Oriented Control block?
I can use the auto-tuning feature in Simulink to tune regular PID control blocks, but I cannot figure out how to tune the PID parameters of the PMSM Field-Oriented Control Block.
I tried tuning the parameters by hand, but this takes too long and produces unreliable results.

Best Answer

Since the PMSM Field-Oriented Control Block is an advanced controller that is not supported by the auto-tuning workflow, there are currently limited options for tuning the PID parameters.
You can perform a parameter sweep or try using the Autotuner blocks to speed up the process of manually tuning the parameters. Here are some topics that may help you tune your controller.
Tuning power electronic controllers with PWM involved:
Autotuner Block tuning:
Short video describing auto-tuning:
Closed Loop Autotuner Block: