필터 지우기
필터 지우기

Stateflow chart output Initialization

조회 수: 2 (최근 30일)
Nour
Nour 2024년 2월 6일
답변: Mark McBroom 2024년 2월 17일
Hello,
I am facing an issue to generate code for a part of my model. I have a stateflow chart in my model which contains one ouput and I did the initialization of this output using property inspector. so After generating the code, I shall have the initialization of the variable in the code which is not the case.
I am using Matlab 2020 for code generation.
Does anyone have any idea how to proceed to be able to generate code with the initialization of the variable ?
Thank you!

답변 (1개)

Mark McBroom
Mark McBroom 2024년 2월 17일
Best guess is the the StateChart also writes to the output on the first activation so the initial value you specifed is optimized out.

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by