This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build level 3 - Always over current when trying to set Kp

I'm trying to bring up our motor using the Sensorless FOC of 3-Phase PMSM app.  The motor runs fine open loop (build level 2) but when I try to run the motor in closed loop, It overcurrents big time and shuts down the power supply.  My motor shouldn't take more than 5 amps no load and the supply is good for 40 amps.  I've set the Kp from 0.2 up to 20 and it makes no difference.  Ki is zero and Kd is not used.

The instructions for level 3 assume the user is prescient.  It only instructs the user to set the PID gains properly.  I'm assuming (because the instructions are extremely vague) that I'm supposed to monitor pid1_iq.Out while I set Kp.  I'm also assuming I can set the Kp and Ki through the watch window.  Either way, nothing works.  I overcurrent every time regardless the value of Kp.