how to instruct embedded coder to add inline directive to generated function from slx file.
조회 수: 23 (최근 30일)
이전 댓글 표시
I have .slx file with single model. Due to performance problems I need to use "inline" directive in this models. How to instruct Embedded Coder to add inline to generated function from my slx file ?
I have Matlab 2022b
댓글 수: 0
답변 (1개)
Fangjun Jiang
2026년 1월 13일 20:03
Assume the function is corresponding to an atomic subsystem block in your model, select this block, right click, select "Block Parameters (Subsystem)", in the "Code Generation" panel, choose "Inline" (instead of auto) for "Function packaging".
댓글 수: 3
Fangjun Jiang
2026년 1월 14일 13:46
ok, this setting forces the code for the block to be generated directly "inline", not to generate a function with the "inline" directive, which can't be done AFAIK.
Fangjun Jiang
2026년 1월 14일 14:00
편집: Fangjun Jiang
2026년 1월 14일 14:01
Or, the customized TLC file might be able to do it. Search for topic "C Function Prototype Control"
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
