@@ -117,12 +117,12 @@ T(s) &= \dfrac{P(s)C(s)}{I + P(s)C(s)}
117117using ControlSystemsBase
118118# Get sensitivity function
119119matrices_S,
120- simplified_sys_S = Blocks .get_sensitivity(
120+ simplified_sys_S = ModelingToolkit .get_sensitivity(
121121 model, :y, op = Dict(unknowns(sys) .=> 0.0))
122122So = ss(matrices_S...) |> minreal # The output-sensitivity function as a StateSpace system
123123# Get complementary sensitivity function
124124matrices_T,
125- simplified_sys_T = Blocks .get_comp_sensitivity(
125+ simplified_sys_T = ModelingToolkit .get_comp_sensitivity(
126126 model, :y, op = Dict(unknowns(sys) .=> 0.0))
127127To = ss(matrices_T...)# The output complementary sensitivity function as a StateSpace system
128128bodeplot([So, To], label = ["S" "T"], plot_title = "Sensitivity functions",
@@ -133,7 +133,7 @@ Similarly, we may compute the loop-transfer function and plot its Nyquist curve
133133
134134``` @example dc_motor_pi
135135matrices_L,
136- simplified_sys_L = Blocks .get_looptransfer(
136+ simplified_sys_L = ModelingToolkit .get_looptransfer(
137137 model, :y, op = Dict(unknowns(sys) .=> 0.0))
138138L = -ss(matrices_L...) # The loop-transfer function as a StateSpace system. The negative sign is to negate the built-in negative feedback
139139Ms, ωMs = hinfnorm(So) # Compute the peak of the sensitivity function to draw a circle in the Nyquist plot
0 commit comments