How to customize the code interface of a function generated of a reference model
Ältere Kommentare anzeigen
I was working on a code-generation project with a top model and several referenced models. I found it very easy to customize the name and argument of any entry-point functions in top model after following the link:
However, I could not find where to customize the function interfaces for referenced models. One of the referenced model I have takes a single input and return a single output, and the generated code has the function like:
void foo(const real_T *input, real_T *output);
I want it to be configured as:
real_T foo(const real_T input);
Could anyone give me some guidance?
Much appreciated!
Akzeptierte Antwort
Weitere Antworten (1)
Chidvi Modala
am 30 Jul. 2019
0 Stimmen
TLC (Target Language Compiler) files are used to customize the code building process. They generally come in two varieties
- System/model tlc files that help in the overall model conversion process
- Block level tlc files which describe how individual blocks (typically S-Functions) get converted to C code.
For more details about TLC Compiler, you can refer to http://www.mathworks.com/help/releases/R13sp2/pdf_doc/rtw/targetlanguagecompiler.pdf
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!