This example shows how to control the rotor speed in a permanent magnet synchronous machine (PMSM) based electrical-traction drive. A high-voltage battery feeds the FEM-Parameterized PMSM block through a controlled three-phase converter. A Rotational Friction block provides the load. The position and speed information are obtained by using a high-fidelity resolver. The PMSM controller subsystem includes a cascade control structure which has an outer speed-control loop and two inner current-control loops. During the 0.3 seconds simulation, the rotor speed demand is ramped-up from 0 to 1000 rpm.
The plot below shows the requested and measured speed for the test, as well as the phase currents in the electric drive.