Include of custom code in generated

It is about including a custom code in the generated code using the Custom Code pane in the Model Configuration Parameters. As far as I know, the custom code will be inserted at the TOP of the header and source files generated for a model. In my case, the custom code must however be inserted at the BOTTOM since the custom code itself uses data types that are defined somewhere in the generated files.
Therefore, is there any way to force the inculsion to be done at the bottom rather than top of the generated?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 8월 6일
편집: Fangjun Jiang 2020년 8월 6일

0 개 추천

댓글 수: 2

sanad al-areqi
sanad al-areqi 2020년 8월 7일
Thank you Fangjun for your prompt reply :-)
In fact, I have already tested these blocks in my model and the folowing error message occurs during the code generation process using the "grt.tlc" system target file:
"this type of block is not allowed for the C++ encapsulation interface feature"
That was the reason why I went back to the Custom Code pane in the Model Configuration Parameters with the hope to resolve this issue.
Fangjun Jiang
Fangjun Jiang 2020년 8월 7일

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

제품

질문:

2020년 8월 6일

댓글:

2020년 8월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by