R
Hello:
I want to write a piece of code to find optimal set of values (Ki, Kp, Kd) of a generic PID controller, taking into account any of the classical tuning rules. The idea is to generate successive gain values, put them as PID inputs, calculate output, change gains accordingly and so on. But I found it very difficult conceiving the proper algorithm, especially dealing with convergence. Can anybody help me showing the way? I like to use MatLab/Visual Basic, but a general approach could be sufficient.
Thanks very much.
Roberto
I want to write a piece of code to find optimal set of values (Ki, Kp, Kd) of a generic PID controller, taking into account any of the classical tuning rules. The idea is to generate successive gain values, put them as PID inputs, calculate output, change gains accordingly and so on. But I found it very difficult conceiving the proper algorithm, especially dealing with convergence. Can anybody help me showing the way? I like to use MatLab/Visual Basic, but a general approach could be sufficient.
Thanks very much.
Roberto