필터 지우기
필터 지우기

how to disable Stateflow object eliminated by optimization while code generation ?

조회 수: 16 (최근 30일)
RK
RK 2023년 5월 26일
답변: Saffan 2023년 5월 30일
I have designed a state machine in stateflow. it consists of several variable and states. however, when I am generating codeusing embedded Coder, multiple states and variables are missing from code. on clicking on that particlar state, Stateflow prompts "Stateflow object eliminated by optimization". kindly suggest how to ensure all states and variables are present in the final code as they are in state machine

답변 (1개)

Saffan
Saffan 2023년 5월 30일
To prevent elimination of states or other blocks from generated code by optimization, you need to uncheck Block reduction parameter from Model Configuration Parameters > Simulation Target > Advanced parameters > Block reduction.
Refer to the following link for more information on code generation optimization:

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by