MATLAB Answers

0

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

Asked by Islam Elnady on 8 Dec 2016
Latest activity Answered by Arkadiy Turevskiy on 9 Dec 2016
I need to convert a PID block system in Simulink into Matlab code and then into C. Any tips ?

  0 Comments

Sign in to comment.

1 Answer

Answer by Arkadiy Turevskiy on 9 Dec 2016

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.

  0 Comments

Sign in to comment.