MATLAB Answers


Simulation of PID without simulink

Asked by Maksym Zawrotny on 9 Apr 2019
Latest activity Edited by Maksym Zawrotny on 9 Apr 2019
I am trying to simulate a plant and I cannot simulate output of PID controller. I got PID object by
pidtude(sys, type)
Method returned me a discrete time PID controller just as I wanted, but the problem is that
y = lsim(sys, u)
function cannot be used to simulate response of improper transfer function systems. Is there any other method which can I use to simulate response of pid object knowing input vector? I prefer not using simulink.
Thank you,
Maksym Zawrotny


Sign in to comment.

1 Answer

Answer by David Wilson on 9 Apr 2019
 Accepted Answer

It's unusual to just simulate a PID controller, and yes the D-part typically makes it non-proper. Without adding a fast denominator term or two, this is an ill-advised thing to do.
You can of course simulate the PID & plant, say either with Gc*Gp or using series.

  1 Comment

Thank you, combining transfer functions together made the thing. Another solution is to model PID controller D-action with inertial denominator term.

Sign in to comment.