MATLAB: How to properly excite state-space models with time-delay using step-function

Control System Toolboxssstate-spacesteptime delay

Hi,
I have constructed the following state-space presentation with a time-delay:
C = pid(1,0.1);
G = tf(2.5,[105 1],'InputDelay',5);
sys = feedback(ss(G),C);
step(sys);
The result is decaying to zero, however the steady state value for a unit step input should be 1 for the given system? Am I missing something here?
Best regards, Aapo Keskimölö

Best Answer

Now I get it, your C PID should be in series with your model G and the feedback is the constant 1
sys=feedback(G*C,1)
step(sys)