pid
PID controller in parallel form
Description
Use pid
to create parallel-form
proportional-integral-derivative (PID) controller model objects, or to convert dynamic system models to parallel PID controller
form.
The pid
controller model object can represent parallel-form PID
controllers in continuous time or discrete time.
Continuous time —
Discrete time —
Here:
Kp is the proportional gain.
Ki is the integral gain.
Kd is the derivative gain.
Tf is the first-order derivative filter time constant.
IF(z) is the integrator method for computing the integral in discrete-time controller.
DF(z) is the integrator method for computing the derivative filter in discrete-time controller.
You can then combine this object with other components of a control architecture, such as the plant, actuators, and sensors to represent your control system. For more information, see Control System Modeling with Model Objects.
You can create a PID controller model object by either specifying the controller
parameters directly, or by converting a model of another type (such as a transfer function
model tf
) to PID controller form.
You can also use pid
to create generalized state-space (genss
) models or uncertain state-space (uss
(Robust Control Toolbox)) models.
Creation
You can obtain pid
controller models in one of the following ways.
Create a model using the
pid
function.Use the
pidtune
function to tune PID controllers for a plant model. Specify a 1-DOF PID controller type in thetype
argument of thepidtune
function to obtain a parallel-form PID controller. For example:sys = zpk([],[-1 -1 -1],1); C = pidtune(sys,'PID');
Interactively tune the PID controller for a plant model using:
The Tune PID Controller Live Editor task.
The PID Tuner app.
Syntax
Description
Input Arguments
Output Arguments
Properties
Object Functions
The following lists contain a representative subset of the functions you can use with pid
models. In general, any function applicable to Dynamic System Models is applicable to a pid
object.
Examples
Version History
Introduced in R2010b