Contenu principal

Control and Simulate Torque of IPMSM in DQ Frame

Since R2024b

This example shows how to control the torque in an automotive electrical traction drive of an interior permanent magnet synchronous machine (IPMSM). The example controls and simulates the torque in the rotor direct-quadrature (DQ) reference frame. You can use the DQ reference frame to design the controller and to speed up the simulation. The IPMSM operates in both motoring and generating modes according to the load. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the IPMSM torque and a closed-loop approach to control the current. The control algorithm converts the torque request to the relevant current references. The reference DQ voltages feed the IPMSM. The simulation involves several torque steps in both motor and generator modes.

Open Model

Results from Real-Time Simulation

This example has been tested on these platforms:

  • Speedgoat™ Performance real-time target machine with an Intel® 3.5 GHz i7 multi-core CPU and 4 GB RAM.

  • dSPACE® SCALEXIO LabBox with Intel® Core XEON E3-1275v3 at 3.5GHz and 4 GB RAM.

You can run this model in real time with a step size of 40 microseconds by using the Simscape local solver. For small sample rates, a task overrun might occur during the initial task execution due to a cold cache. To avoid this overrun, if the selected platform supports these options, relax the start-up behavior by specifying a limited number of task overruns or increasing the sample time of periodic tasks during the start-up phase of the real-time application.

See Also

Topics