Main Content

PID Tuner

调谐PID控制器

Description

PID TunerApp自动调整PID控制器的增益,以使SISO工厂在性能和稳健性之间达到平衡。您可以指定控制器类型,例如带有导数滤波器的PI,PID或两度自由度(2-DOF)PID控制器。分析图可让您在时间和频域中检查控制器性能。您可以交互性地完善控制器的性能以调整循环带宽和相位边距,或者偏爱设定点跟踪或干扰拒绝。

You can usePID Tuner用数字LTI模型(例如传输函数)代表的植物(TF)或州空间(SS) model. If you have万博1manbetx®Control Design™software, you can usePID Tuner调整aPID控制器orPID控制器(2DOF)模型中的块。万博1manbetx如果您具有系统标识Toolbox™软件,则可以使用该应用程序从测量或模拟数据中估算工厂,并为估计工厂设计控制器。

现场编辑中的互动调整

有关Live编辑器中的交互式PID调整,请参阅Tune PID控制器实时编辑任务。此任务使您可以交互式设计PID控制器并自动生成MATLAB®实时脚本的代码。

打开PID调谐器应用程序

  • MATLAB工具条:在应用标签,下Control System Design and Analysis, click the app icon.

  • MATLABcommand prompt: Enterpidtuner

  • Simulink model: In thePID控制器orPID控制器(2DOF)块对话框,单击

参数

植物menu displays the name of the current plant thatPID Tuner用于控制器设计。

使用以下菜单选项更改当前工厂:

  • LTI模型中存在的列表PID Tuner数据浏览器。

  • 进口— Import a new LTI model from the MATLAB workspace.

  • 重新Linearize Closed Loop- 在不同的快照时间线性化植物。看在另一个操作点调整(万博1manbetxSimulink控制设计)。此选项仅在调谐时可用PID控制器orPID控制器(2DOF)模型中的块。万博1manbetx

  • 识别新植物- 使用系统标识从测量或模拟的系统响应数据中获取工厂(需要系统标识工具箱软件)。看:

如果您正在调整PID controller for a plant represented by an LTI model, the default plant is:

  • 植物= 1,如果您打开PID Tunerfrom the应用MATLAB工具条中的选项卡,或者如果使用pidtuner没有输入参数的命令。

  • 这plant you specified as an input argument topidtuner

如果您正在调整PID控制器orPID控制器(2DOF)在Simulink模型万博1manbetx中块,然后在模型初始条件指定的操作点上将默认工厂线性化。看PID调谐器看到什么植物?(万博1manbetxSimulink控制设计)

这controller type specifies which terms are present in the PID controller. For instance, a PI controller has a proportional and an integral term. A PDF controller has a proportional term and a filtered derivative term.

  • 如果您正在调整由LTI型号代表的植物的控制器,请使用Typemenu to specify controller type. When you change controller type,PID Tuner自动设计一个新的控制器。可用的控制器类型包括2-DOF PID控制器,以在干扰拒绝和参考跟踪之间更加灵活。有关可用控制器类型的详细信息,请参见调音的PID控制器类型

  • 如果您正在调整PID控制器orPID控制器(2DOF)block in a Simulink model, theTypefield displays the controller type specified in the block dialog box.

This field displays the controller form.

  • 如果您正在调整由LTI型号代表的植物的控制器,请使用形式菜单要指定控制器表单。有关平行和标准表格的信息,请参见pidandpidstd参考页。

  • 如果您正在调整PID控制器orPID控制器(2DOF)block in a Simulink model, the形式field displays the controller form specified in the block dialog box.

领域menu enables you to switch the domain in which PID Tuner displays the target performance parameters.

  • 时间— Sliders set theResponse Timeand瞬态行为

  • 频率— Sliders set the带宽and相位边缘

To refine the controller design, you adjust the target performance parameters using the sliders or the corresponding numeric values.

有关更多信息,请参见:

  • 完善设计(调整a controller for an LTI model)

  • 完善设计(万博1manbetxSimulink控制设计)(调整PID控制器orPID控制器(2DOF)Simulink模万博1manbetx型中的块)

创建时间域和频域分析图,以帮助分析PID控制器的性能。有关可用响应图的详细信息,请参见:

程序化使用

Tips

  • For PID tuning at the command line, usepidtune。这pidtunecommand can design a controller for multiple plants at once.

  • 有关Live编辑器中的交互式PID调整,请参阅Tune PID控制器实时编辑任务。此任务使您可以交互式设计PID控制器,并自动为实时脚本生成MATLAB代码。

版本历史记录

Introduced in R2010b

也可以看看

功能

实时编辑任务