piddata
Access coefficients of parallel-form PID controller
Syntax
[Kp,Ki,Kd,Tf]
= piddata(sys)
[Kp,Ki,Kd,Tf,Ts]
= piddata(sys)
[Kp,Ki,Kd,Tf,Ts]
= piddata(sys,J1,...,JN)
Description
[
returns the PID gains Kp
,Ki
,Kd
,Tf
]
= piddata(sys
)Kp
,Ki
,
Kd
and the filter time constant Tf
of the
parallel-form controller represented by the dynamic system
sys
.
[
also returns the sample time Kp
,Ki
,Kd
,Tf
,Ts
]
= piddata(sys
)Ts
.
[
extracts the data for a subset of entries in Kp
,Ki
,Kd
,Tf
,Ts
]
= piddata(sys
,J1,...,JN)sys
, where
sys
is an N-dimensional array of dynamic systems. The indices
J
specify the array entry to extract.
Input Arguments
|
SISO dynamic system or array of SISO dynamic systems. If
|
|
Integer indices of N entries in the array
[Kp,Ki,Kd,Tf,Ts] = piddata(sys,2,3); |
Output Arguments
|
Proportional gain of the parallel-form PID controller represented by
dynamic system If If If |
|
Integral gain of the parallel-form PID controller represented by dynamic
system If If If |
|
Derivative gain of the parallel-form PID controller represented by dynamic
system If If If |
|
Filter time constant of the parallel-form PID controller represented by
dynamic system If If If |
|
Sample time of the dynamic system |
Examples
Tips
If sys
is not a pid
controller object, piddata
returns the PID
gains Kp
, Ki
, Kd
and the
filter time constant Tf
of a parallel-form controller equivalent to
sys
.
For discrete-time sys
, piddata
returns the
parameters of an equivalent parallel-form controller. This controller has discrete
integrator formulas IFormula
and DFormula
set to
ForwardEuler
. See the pid
reference page for more information about discrete integrator
formulas.
Version History
Introduced in R2010b