MATLAB based PID controller

版本 1.0.0.0 (2.1 KB) 作者: Mohammad Saadeh
A very simple and effective way to build a PID controller in a single m.code
8.8K 次下载
更新时间 2012/2/20

查看许可证

This code generates a PID controller in MATLAB environment without using any built-in commands or simulink blocks.
Tune this PID by changing the Kp, Ki, Kd, simulation time, or the desired set value.
The uniqueness of this code is that you can replace the two integrators with your model/system. You will find a note at that location in the code.
I used this code instead of Real Time Workshop (RTW) to simulate a system with a hardware-in-the-Loop (HIL), it worked just fine. You need to set your time properly so your system has enough of it to come to rest/settle.

引用格式

Mohammad Saadeh (2024). MATLAB based PID controller (https://www.mathworks.com/matlabcentral/fileexchange/35163-matlab-based-pid-controller), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: AndyZelenak/three_simple_PIDs

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0