필터 지우기
필터 지우기

Simulink Code Generation Workflow for Subsystem

조회 수: 2 (최근 30일)
Federico Toso
Federico Toso 2023년 11월 13일
댓글: Federico Toso 2023년 11월 22일
In my understanding, if all blocks in a Simulink subsystem support Code Generation, than it is possible to treat the whole subsystem as an atomic unit and then generate code for it.
Is this correct? If so, is it always a good idea to convert the sybsystem to atomic unit in order to increase efficiency of code generation?

채택된 답변

Mark McBroom
Mark McBroom 2023년 11월 18일
Converting a subsystem to be atomic will disable some cross boundary optimizations. The benefit of making the subsystem atomic is you can then specify reusable function on the "code generation" tab of the subsystem that will result in a standalone C function, optionally in it's own file. If the atomic subsystem is used multiple times in the model, the code for the subsystem will only be generated once.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by