To some extend I can understand theory of field oriented control of PMSM. From a text book i got a simulation diagram also. When i rigup it in matlab simulink and run I got some error. I attached it here. Can somebody help me to get output? If you know any other material please refer.