필터 지우기
필터 지우기

Simulink Coder eliminates unused function calls/variables in the generated code from StateFlow

조회 수: 7 (최근 30일)
Hello everyone, I am trying to generate code from a simple StatFlow chart. In my states I make calls to some Matlab Functions defined inside the StatFlow using Matlab Function boxes. The problem is that coder removes function calls whose outputs are not used in transitions. I have to make dummy variables as function returns, and (fake) use them as transition conditions so that the function call is not eliminated in the generated code. Is there any solution or setting that stops the coder from doing this or maybe as it might believe "Optimizing the code"?
Thanks Ramtin

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by