## Building Your Own Drive - MATLAB & Simulink

As shown below, the rotor flux and torque can be separately controlled by the stator direct-axis current i ds and quadrature-axis current i qs, respectively. Field-Oriented Control Principle The mathematical principles of this AC drive have been discussed in Electric Drives Library .