Building PID without transfer functions
21 ビュー (過去 30 日間)
古いコメントを表示
Is it possible for me to build a PID without transfer function in Simulink interface?
Let say i have a temperature output (bell shaped) which i want to keep constant. Is it possible to directly use this output for my PID control?
0 件のコメント
回答 (2 件)
Davide Ferraro
2011 年 2 月 23 日
You can also create your PID (discrete) block on your own based on the difference equations.
y(k) = yp(k) + yi(k) + yd(k)
yp(k) = Kp e(k)
yi(k) = yi(k-1) + Ki Ts e(k)
yd(k) = Kd / Ts (e(k) - e(k-1))
To model the delays of your error (in your case the difference by actual temperature and the set one) by usit the Unit Delay block in the Simulink library. If your goal is to learn how a PID controller works I would suggest you to try approaching the implementation from equations and then validate your results with our own block that was suggested by Rong.
0 件のコメント
Rong
2011 年 2 月 23 日
Starting with Release 2009b, PID Controller blocks (in both continuous time and discrete time) are available in Simulink. You can set PID gains directly in these blocks. The blocks also provide advanced features such as anti-windup and tracking. If you also have license of Simulink Control Design, you can click the "Design..." button in the PID block dialog and it launches a PID Tuner that helps you tune the PID gains based on the linearized plant model.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!