pidtune
线性植物模型的PID调整算法
句法
C= pidtune(sys,,,,type)
c = pidtune(sys,c0)
C= pidtune(sys,,,,type,wc)
c = pidtune(sys,c0,wc)
c = pidtune(sys,...,opts)
[[C,,,,信息] = pidtune(...)
Description
设计类型的PID控制器C
= pidtune(sys
,,,,type
)type
对于植物sys
。如果type
specifies a one-degree-of-freedom (1-DOF) PID controller, then the controller is designed for the unit feedback loop as illustrated:
如果type
指定一个两度自由(2-DOF)PID控制器,然后pidtune
在此图的反馈回路中设计一个二元控制器:
pidtune
tunes the parameters of the PID controllerC
to balance performance (response time) and robustness (stability margins).
designs a controller of the same type and form as the controllerC
= pidtune(sys
,,,,C0
)C0
。如果sys
andC0
are discrete-time models,C
具有与C0
。
andC
= pidtune(sys
,,,,type
,,,,wc
)
指定目标值C
= pidtune(sys
,,,,C0
,,,,wc
)wc
for the first 0 dB gain crossover frequency of the open-loop response.
uses additional tuning options, such as the target phase margin. UseC
= pidtune(sys
,,,,。。。,,,,选择
)pidtuneoptions
to specify the option set选择
。
[[
returns the data structureC
,,,,信息
] = pidtune(...)信息
,其中包含有关闭环稳定性,所选开环增益跨界频率和实际相距的信息。
输入参数
|
Single-input, single-outputdynamic system modelof the plant for controller design.
如果植物有不稳定的杆子,并且
you must use |
|
Controller type of the controller to design, specified as a character vector. The termController typerefers to which terms are present in the controller action. For example, a PI controller has only a proportional and an integral term, while a PIDF controller contains proportional, integrator, and filtered derivative terms. 1-DOF Controllers
2-DOF Controllers
For more information about 2-DOF PID controllers generally, seeTwo-Degree-of-Freedom PID Controllers。 2-DOF Controllers with Fixed Setpoint Weights
有关固定 - 定量重量2-DOF PID控制器的更多详细信息,请参见调音的PID控制器类型。 控制器表格当您使用 如果 有关PID控制器表格和公式的更多信息,请参见: |
|
PID controller setting properties of the designed controller, specified as a
|
|
Target value for the 0 dB gain crossover frequency of the tuned open-loop response. Specify 增加 |
|
Option set specifying additional tuning options for the |
Output Arguments
|
为了设计控制器 控制器表格: Controller type:
In either case, however, where the algorithm can achieve adequate performance and robustness using a lower-order controller than specified with Time domain: 如果you specify |
|
Data structure containing information about performance and robustness of the tuned PID loop. The fields of 如果 |
Examples
Tips
By default,
pidtune
with thetype
输入返回apid
Controller in parallel form. To design a controller in standard form, use apidstd
Controller as input argumentC0
。For more information about parallel and standard controller forms, see thepid
andpidstd
reference pages.有关Live编辑器中的交互式PID调整,请参阅Tune PID控制器实时编辑任务。此任务使您可以交互式设计PID控制器并自动生成MATLAB®Code for your live script.
一个lgorithms
有关数学的信息®PID tuning algorithm, seePID调整算法。
备择方案
有关Live编辑器中的交互式PID调整,请参阅Tune PID控制器实时编辑任务。此任务使您可以交互式设计PID控制器并自动生成MATLABCode for your live script. For an example, seePID Controller Design in the Live Editor
For interactive PID tuning in a standalone app, usePID调谐器。看快速参考跟踪的PID控制器设计for an example of designing a controller using the app.
参考
Åström,K。J。和Hägglund,T。高级PID控制,,,,Research Triangle Park, NC: Instrumentation, Systems, and Automation Society, 2006.