PID block and manual PID
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
soko loko
el 31 de Dic. de 2013
Comentada: Elon
el 9 de Ag. de 2024
Hi:
I'm having a hard time understanding the difference between the PID block and the "manual" PID. For better understanding see the enclosed image. The gains are the same for both systems (same transfer function) but for some reason the result is not the same. What could be wrong?

1 comentario
Respuesta aceptada
Arkadiy Turevskiy
el 14 de Feb. de 2014
First of all, the gains are not the same.
PID Controller block has a parameter called Filter Coefficient, N. By default this parameter is set to 100. Based on your results, looks like you left this value unchanged. The transfer function of PID Controller block is:
P+I/s+D*N/(1+N/s)
N is the bandwidth of lowpass filter on the derivative. Pure derivative is not a good idea - it amplifies measurement noise, so a practical implementation should avoid pure derivatives and use a low pass filter, which is what PID Controller block does. If you look under the mask, that's how it does it:

The transfer function of you PID Controller you implemented with a derivative block is P+I/s+D*s.
So some difference is to be expected due to the fact that transfer functions are different. But again, the main point is not to use the pure derivative in your simulation. If you want to approach the pure derivative as high as possible, set N high, say at 1,000 or 10,000.
HTH.
3 comentarios
dila
el 20 de Nov. de 2018
"Coefficient c in the transfer function approximation s/(c*s + 1) used for linearization — Specify the time constant c to approximate the linearization of your system"
But then shouldn't it give the same response with the pid block, when c is set to 0.01 i.e. for N=100 ?
Elon
el 9 de Ag. de 2024
I met the same problem and this solution works greatly. Thank you. And your explaination also helps me understand that a high pass filter of
can be viewed as an pure derivative S with a low pass filter 1/(s+N),N is the corner frequency or bandwith, it uses an integrator as feedback to pull the magnitude bode plot flat to limit the high frequency noise.
can be viewed as an pure derivative S with a low pass filter 1/(s+N),N is the corner frequency or bandwith, it uses an integrator as feedback to pull the magnitude bode plot flat to limit the high frequency noise.Más respuestas (1)
Ogulcan Sisman
el 16 de Mayo de 2019
hey there, currently i am researching about this subject too and i know the N coefficient effects the difference between PID Block and Manual PID. But teacher said there is another thing that effects the difference between them. Does anyone know the other one ?
0 comentarios
Ver también
Categorías
Más información sobre PID Controller Tuning en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!