PID controller initialization does not seem to work

24 visualizaciones (últimos 30 días)
Felix Schönig
Felix Schönig el 7 de Jul. de 2020
Respondida: Aman Vyas el 10 de Jul. de 2020
Dear community,
apparently my PID controller block does not work the way I want it to. I use it to regulate a mass flow depending on the error between a given and a computed temperature. After the controller output disturbance feed forward is added. However: I want the output to begin with a massflow of mdot = 5. If I set the parameter "Integrator" in the initialization tab to 5, it starts at minus three something, as if I had added nothing.
The documentation says:
Simulink uses the integrator initial condition to initialize the integrator at the start of a simulation or at a specified trigger event (see External reset). The integrator initial condition and the filter initial condition determine the initial output of the PID controller block.
No filter value is added since I do not have a D-part currently.
What am I missing?
Thanks in advance,
Felix
  1 comentario
Paresh yeole
Paresh yeole el 7 de Jul. de 2020
if you want the feedback of the output to start from 5. Then you should put delay in the feedback path and then initialise it with initial condition equal to 5.

Iniciar sesión para comentar.

Respuestas (1)

Aman Vyas
Aman Vyas el 10 de Jul. de 2020
Hi,
PID controller parameters are tunable either manually or automatically. Some initial default values are already set for all these parameters.
Try setting default value and then analyze the output, that would mark the initial condition of the output. After that provide the necessary delay as required in the feedback loop to get the output starting from 5 seconds.
You can also look at reset – external trigger reset which resets integrator and filter to their initial conditions. For more info, you can refer to the documentation link.
Hope it helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by