I am studying about PMSM, the lecturer asked me to simulate on PSIM using C-block but my code is bad, can you guys help me?