Main Content

Real-Time PID Autotuning

R2026b
Real-time model-free tuning of PID gains using plant frequency responses

PID autotuning lets you tune a PID controller in real time against a physical plant. If you have a code-generation product such as Simulink® Coder™, you can generate code that implements the tuning algorithm on hardware, letting you tune with or without Simulink in the loop. To get started, see How PID Autotuning Works.

Blocks

expand all

Closed-Loop PID Autotuner blockClosed-Loop PID AutotunerAutomatically tune PID gains based on plant frequency responses estimated from closed-loop experiment in real time
Open-Loop PID Autotuner blockOpen-Loop PID AutotunerAutomatically tune PID gains based on plant frequency responses estimated from open-loop experiment in real time
Gain-Scheduled PID Autotuner block iconGain-Scheduled PID AutotunerAutomatically tune PID gains at multiple operating points (Since R2024a)
Field Oriented Control AutotunerAutomatically and sequentially tune multiple PID control loops in field-oriented control application
Change Operating Points blockChange Operating PointstSwitch between operating points during simulation (Since R2023b)
PID Gain Scheduler blockPID Gain SchedulerLookup table based gain scheduling with PID array (Since R2023b)
PID Gains Store and Update blockPID Gains Store and UpdateStore and update tuned PID gains tuned using Closed-Loop PID Autotuner (Since R2023b)

Topics

PID Autotuning Basics

Motor Control Applications

Featured Examples