How can I convert a Simulink PID block into a Matlab code ?

조회 수: 6 (최근 30일)
Islam Elnady
Islam Elnady 2016년 12월 8일
답변: Arkadiy Turevskiy 2016년 12월 9일
I need to convert a PID block system in Simulink into Matlab code and then into C. Any tips ?

답변 (1개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2016년 12월 9일
There is a PID object in Control System Toolbox,but this object is only for analysis, not for implementation. In other words, you can use it for say computing a bode plot of a closed-loop system, but you cannot generate code from it. If you want to generate C code, you need to use PID Controller block in Simulink and generate code from it using Simulink Coder.

카테고리

Help CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by