How to generate C++ code from model with S-Functions using ert_shrlib target ?

Hi!
I designed a model with some S-functions (on Matlab 2016b) and I convert it to C or C++ using ert_shrlib but I always get errors.
But when when i compile in my C/C++ IDE, this error appears : "Must define one of RT, NRT, MATLAB_MEX_FLIE, SL_INTERNAL, or FIPXT_SHARED_MODULE" in simustruc.h. I don't really know if it's linked but is it possible to generate C/C++ code from an S-Function?
If yes, How ?
Thanks!
Alan

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2020년 2월 27일

편집:

2020년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by