Simulink - PID Controller Tuning - Strange graphs
13 次查看(过去 30 天)
显示 更早的评论
Hello, I'm trying to tune PID controller in Simulink (system with delay). My "model" in Simulink looks like this:

I used Cohen-Coon method to find parameters of PID controller. Input parameters for PID controller are all right but when i start the simulation I keep getting these "not smooth" graphs (via picture) and I don't know why. I already tried to change model settings -> solver -> min and max step size but there is no difference.

I would be grateful for any help with this problem.
3 个评论
采纳的回答
Sam Chak
2022-4-9
The spikes in the your original output signal was caused by the derivative filter in the PID controller block. More accurately, it's because you tuned the PID control gains manually using the Cohen-Coon method and directly inserted these 3 values into the block, without taking the effect of the derivative filter (N = 100 by default) into account.
There are generally two approaches to handle this situation:
- Tune the filter coefficient until you obtain a desired smooth output.
- Use the Ideal PID controller instead.


更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



