This example shows how to control the currents in a BLDC based electrical drive using hysteresis controllers. A DC voltage source feeds the BLDC through a controlled three-phase inverter. A ramp of current request is provided to the motor controller. The load torque is quadratically dependent on the rotor speed. The Control subsystem implements the hysteresis-based current control strategy. The Scopes subsystem contains scopes that allow you to see the simulation results.
The plot below shows the requested and measured current on phase A for the test and the rotor speed in the electric drive.