Main Content

Perform Manual Gain-Tuning of Speed Controller

To manually tune the Speed Controller subsystem, add a step input (in the range 0.2 to 0.5 PU) to the Speed_ref_PU input in Speed Controller subsystem. Monitor the speed step response and tune the Speed Controller subsystem parameters. This figure shows the step response of the speed controller.

The preceding procedure provides an approach to implement speed control for a PMSM motor in simulation. Run the simulation and analyze the controller performance.

You can generate the C code from this control algorithm using Embedded Coder®. You can deploy this code and the hardware drivers to the target hardware.