How to generate C++ code from an S-Function?? using RTWEC??

7 ビュー (過去 30 日間)
ferchots Sanchez
ferchots Sanchez 2011 年 3 月 8 日
Hi!
I designed a controller in an S-function and I want to convert it to C or C++ using RTWEC but I always get erros for example saying that I have to create a TLC file to do it.
Is it possible to generate C/C++ code from an S-Function? if yes, How?? :)
Thanks!! Fernando

採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 3 月 8 日
Yes, it is possible to generate Embedded C/C++ code for your S-function by writing a TLC for it. See Inlining S-Functions.
You may also check the Support: non-inlined S-functions box in the Configuration Parameters window to generate C/C++ code without writing a TLC script, however, this generates an inefficient interface between the code generated for the model and your S-function file. On embedded systems, this causes unnecessary overload, so we typically recommend inlining S-functions.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by