I cannot generate C code from MATLAB Coder

1 vue (au cours des 30 derniers jours)
SimTec
SimTec le 12 Oct 2020
Commenté : SimTec le 21 Oct 2020
I would like to generate C code for a PI controller, but whenever I reach this step I cannot continue any longer. I watched a video from MATLAB, but that one has testbench which I do not need here.
%#codegen
function [PIout,yint] = PI_cont(err,ki, kp,yr)
yint=ki*err+yr; % yint=ki*err/s
PIout=yint+kp*err;
Here, you find how I stored the integral yint into yr
  9 commentaires
SimTec
SimTec le 16 Oct 2020
Thank you, wait a moment
SimTec
SimTec le 21 Oct 2020
NOw it is working

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by