Building PID without transfer functions
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Davide Ferraro
el 23 de Feb. de 2011
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 comentarios
Rong
el 23 de Feb. de 2011
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.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!