How do I change the name of a Subsystem's function in generated code?

I want to change the function signature of a Subsystem's generated function, especially the name, so that I can call it from other sections in my code.

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 9월 2일
편집: MathWorks Support Team 2021년 9월 16일

0 개 추천

It is possible to control the generated function prototype of an Atomic Subsystem. Please use the options in the Code Generation pane in the Atomic Subsystem's block parameters dialog box. To change the name, you would need to set "Function name options" to "User specified" and then enter the desired function name. There are additional options to control the function signature such as the ability to allow arguments. The following link will provide more information on these:
Please note that parameters on the Code Generation tab require a Simulink Coder or Embedded Coder license.
 

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품

릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by