How can I mimic a specific PID Tuner App scenario with a GUI-less MATLAB script?
Show older comments
Hi there,
Using MATLAB 2019a with the Control Toolbox on MacOS Mojave.
I am trying to write a Matlab script to mimic what the PID Tuner App does in the following scenario:
Ts = 0.001
big1d = c2d( tf(0.71,[2.5 1]), Ts)
pidTuner

My script must be non-interactive.
Using pidtune() I'm able to set the controller type (PIDF), the Controller Options (Integrator and Derivator formulae), and the Design Focus = balanced (through the pidtuneoptions).
opt = pidtuneOptions('DesignFocus','balanced');
C0 = pid(1,1,1,1, Ts, 'IFormula','BackwardEuler', 'DFormula','ForwardEuler'); % template PID controller
C = pidtune(big1d,'pidf',C0,opt) % I assume the PID Form is Parallel by default
How can I programmatically set or imitate the Response Time slider = 1.4 and the Transient Behavior Slider = 0.83?
Thank you!
Philippe Couvignou
Brain Corporation - R &D
1 Comment
Philippe Couvignou
on 31 Jul 2019
Accepted Answer
More Answers (0)
Categories
Find more on PID Controller 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!