How to plot the output of the PI controller?

I have the following code:

using ControlSystemsBase, Plots

P_sc = 4.42616018443722e6
I_sc = 11838.3957271545*4

P = tf(-1.898e-8, [1, 0.01934])
C = -pid(P_sc, I_sc)
FS = feedback(P*C)

I can plot the step response of the plant, the step response of the feedback-system, but how can I plot the output of the PI controller in the time domain?

https://juliacontrol.github.io/RobustAndOptimalControl.jl/dev/api/#RobustAndOptimalControl.feedback_control-Tuple{Any,%20Any}

To plot only the controller output, use feedback(C, P). See also Creating Systems · ControlSystems.jl

1 Like

Thanks for the quick reply and for pointing to the relevant parts of the documentation!