The aim of this article is to present the performance of field oriented control (FOC) and direct torque control (DTC) of a permanent magnet synchronous motor (PMSM) using the technique of space vector pulse width modulation (SVPWM). First, after developing a mathematical model of PMSM we present the principle of space vector modulation technique to use in commands. Secondly, we developed a field oriented control and direct torque control strategy. Finally, we proposed a failover system between direct torque control and field oriented control in the event of default or loss of information.