piddata
Access coefficients of parallelform 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
parallelform 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 Ndimensional 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 parallelform PID controller represented by
dynamic system If If If 

Integral gain of the parallelform PID controller represented by dynamic
system If If If 

Derivative gain of the parallelform PID controller represented by dynamic
system If If If 

Filter time constant of the parallelform 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 parallelform controller equivalent to
sys
.
For discretetime sys
, piddata
returns the
parameters of an equivalent parallelform 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.