Access coefficients of parallel-form 2-DOF PID controller
[
returns the PID gainsKp
,Ki
,Kd
,Tf
,b
,c
] = piddata2(sys
)Kp
,Ki
,Kd
, the filter time constantTf
, and the setpoint weightsb
andc
of the parallel-form 2-DOF PID controller represented by the dynamic systemsys
.
Ifsys
is apid2
controller object, then each output argument is the corresponding coefficient insys
.
Ifsys
is not apid2
object, then each output argument is the corresponding coefficient of the parallel-form 2-DOF PID controller that is equivalent tosys
.
Ifsys
is an array of dynamic systems, then each output argument is an array of the same dimensions assys
.
[
also returns the sample timeKp
,Ki
,Kd
,Tf
,b
,c
,Ts
] = piddata2(sys
)Ts
. For discrete-timesys
that is not apid2
object,piddata2
calculates the coefficient values using the defaultForwardEuler
discrete integrator formula for bothIFormula
andDFormula
. See thepid2
reference page for more information about discrete integrator formulas.