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.

How to vary switching frequency on run-time

Hello,

I am using the HVMTR development kit running a low inductance motor. The controlboard used is F28069MISO.

I am running the lab2c with some modifications to read from the CAN bus some parameters to modify in run-time things like speed and acceleration. I have had no problem at all to get that with speed o acceleration but when I tried to do the same thing with the PWM switching frequency things started to get tricky and I have not been able to solve it properly. I know that there are lots of parameters that depend on it and that is why I tried running again the USER_setParams, HAL_setParams and CTRL_setParams right after reading the new switching frequency but it does not work well. In the best of the cases I managed to once it reads the new frequency run again the whole identification process with the new switching frequency (pretty much the same thing as if it started from the beginning of the program again) but obviously that is undesirable and I have not been able to get around that.

Is there any better way to do it? or at least one that works fine?

Thanks in advance

Javier