Hello,
I encounter a problem with code generation (embeded coder) on a simulink that contains a stateflow chart.
The stateflow chart is the main process to be generated in code, reusable function because instantiated after integration.
The stateflow chart uses simulink functions inside chart to share some function inside the chart.
I wanted also to use some simulink function inside another simulink function (to be accessible in standalone function after generation). To do so, the simulink function has to be higher in hierarchy and global, so I moved the required simulink function in the simulink at a higher level (root of the code generation)
After doing this, the code generation is no more possible because the generation cannot be in "reusable function" at the same time of having global simulink function.
As a result I am blocked to do properly what I wanted.
Is there a way to to such a thing in a good way ? (i.e : share simulink function with stateflow shart, other simulink functions and be accessible outside chart as standalone functions ? )