Borrar filtros
Borrar filtros

Stateflow chart output Initialization

3 visualizaciones (últimos 30 días)
Nour
Nour el 6 de Feb. de 2024
Respondida: Mark McBroom el 17 de Feb. de 2024
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!

Respuestas (1)

Mark McBroom
Mark McBroom el 17 de Feb. de 2024
Best guess is the the StateChart also writes to the output on the first activation so the initial value you specifed is optimized out.

Categorías

Más información sobre Complex Logic en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by