pidtuneOptions
Define options for pidtune
command
Syntax
opt = pidtuneOptions
opt = pidtuneOptions(Name,Value)
Description
returns
the default option set for the opt
= pidtuneOptionspidtune
command.
creates
an option set with the options specified by one or more opt
= pidtuneOptions(Name,Value
)Name,Value
pair
arguments.
Input Arguments
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Target phase margin in degrees. Default: 60 |
|
Closed-loop performance objective to favor in the design. For
a given target phase margin, The
The more tunable parameters there are in the system, the more likely it is that the PID algorithm can achieve the desired design focus without sacrificing robustness. For example, setting the design focus is more likely to be effective for PID controllers than for P or PI controllers. In all cases, how much you can fine-tune the performance of the system depends strongly on the properties of your plant. For an example illustrating the effect of this option, see Tune PID Controller to Favor Reference Tracking or Disturbance Rejection (Command Line). Default: |
|
Number of unstable poles in the plant. When your plant is a Unstable poles are poles located at:
A pure integrator in the plant (s = 0) or
(|z| > 1) does not count as an unstable pole
for Default: 0 |
Output Arguments
|
Object containing the specified options for |
Examples
Tune a PIDF controller with a target phase margin of 45 degrees, favoring the disturbance-rejection measure of performance.
sys = tf(1,[1 3 3 1]); opts = pidtuneOptions('PhaseMargin',45,'DesignFocus','disturbance-rejection'); [C,info] = pidtune(sys,'pid',opts);
Tips
Version History
Introduced in R2010b