Other Parts Discussed in Thread: MOTORWARE
Hello dear e2e-community,
We are designing a motor control system for a customer based on InstaSPIN / MotorWare. Our customer wants to be able to change the PWM frequency without having to compile the program, just by using the CAN interface we provide. Just the range from 10 to 20 kHz.
Is it possible to change the PWM frequency at runtime?
My first thought was to replace the #define from the user.h with a variable (with the exact same name), and when the variable gets changed, to start over with the whole initialization process. So all dependant parameters would be calculated anew. Would this work?
Or is there a better way to do this? Have you done this before? Is there perhaps some example code available?
Thank you very much and best regards,
Philipp