![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175866/image.jpeg)
how to measure PID parameters from PID tuning of SISOtool
8 views (last 30 days)
Show older comments
Franklin Ngo
on 19 Nov 2016
Answered: Arkadiy Turevskiy
on 6 Dec 2016
I have a discrete plant which I wanna find a PID controller:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158191/image.jpeg)
I used SISOtool and PID tuning to find a fine PID controller, result is:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158193/image.jpeg)
How can I find PID parameters from that to program my microcontroller? Thank in advanced.
0 Comments
Accepted Answer
Arkadiy Turevskiy
on 6 Dec 2016
Export the compensator you designed, C, to MATLAB workspace. Then in MATLAB type
C=pid(C)
This will convert the compensator from a transfer function to a PID object. You can then access the gains as shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175866/image.jpeg)
0 Comments
More Answers (0)
See Also
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!