MATLAB based PID controller
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.
Zitieren als
Mohammad Saadeh (2024). MATLAB based PID controller (https://www.mathworks.com/matlabcentral/fileexchange/35163-matlab-based-pid-controller), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Control Systems > Control System Toolbox > Control System Design and Tuning > PID Controller Tuning >
- Physical Modeling > Simscape Electrical > Electrical Block Libraries > Electromechanical >
Tags
Quellenangaben
Inspiriert: AndyZelenak/three_simple_PIDs
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |