PID Controller output the results of integral gain
Show older comments
Can the Discrete PID Controller module output the results of integral gain in real-time?
Answers (1)
Broy
on 15 Jan 2026
0 votes
The Discrete PID Controller block does not provide individual term outputs (P, I, or D) directly. It only outputs the final summed control signal.
To monitor the integral gain in real-time, you can construct the PID Manually using individual Simulink blocks:
- Take your Error signal. Split it into three parallel branches.
- P-Branch: Connect Error -> Gain (K_p).
- I-Branch: Connect Error -> Gain (K_i) -> Discrete-Time Integrator block.
- D-Branch: Connect Error -> Discrete Derivative block -> Gain (K_d).
- Add all three branches together to get your control output.
Helpful Documentations:
- https://www.mathworks.com/help/releases/R2022b/simulink/slref/pidcontroller.html
- https://www.mathworks.com/help/releases/R2022b/simulink/slref/discretetimeintegrator.html
- https://www.mathworks.com/help/releases/R2022b/simulink/slref/discretederivative.html
Hope this is helpful.
1 Comment
Kirk
on 15 Jan 2026
Categories
Find more on Programmatic Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!