I want to simulate a PID controller in MATLAB. How do I do this?

조회 수: 26 (최근 30일)
Vishwanath Dugani
Vishwanath Dugani 2017년 4월 7일
답변: Gillian Rosen 2017년 4월 10일
The plant process,transfer functions are unknown. I have the input and output data in decimal, but on the board all of the calculations are happening in fixed point.

답변 (1개)

Gillian Rosen
Gillian Rosen 2017년 4월 10일
Hi Vishwanath,
I understand that you would like to simulate a PID controller in MATLAB, and you are looking for resources to get started.
For designing a PID controller, the simplest solution would be to use the 'pid' function available in the Control System Toolbox. You can also use the PID Tuner app to interactively design and tune a PID controller. See the following links for more information: 
For converting your design from floating point to fixed point, there are options for using MATLAB Coder or HDL Coder. You can use the following examples to get started: 

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by