This example shows how to control the torque in a hybrid excitation synchronous machine (HESM) based electrical-traction drive. Permanent magnets and an excitation winding excite the HESM. A high-voltage battery feeds the SM through a controlled three-phase converter for the stator windings and through a controlled four quadrant chopper for the rotor winding. An ideal angular velocity source provides the load. The Control subsystem uses an open-loop approach to control the torque and a closed-loop approach to control the current. At each sample instant, the torque request is converted to relevant current references. The current control is PI-based. The simulation uses several torque steps in both the motor and generator modes. The Visualization subsystem contains scopes that allow you to see the simulation results.