I have multiple subsystems each of which have State machines "Stateflow". One subsystem has FSM, inside one state there is a simulink function that is supposed to start "simulink model representing an ODE" when in that state , a solution is observed until it reaches a threshold , the value of which shall trigger a transition of a state in a different subsystem
I used the Simulink function inside the stateflow as indicated in numerous tutorial, but the error I'm getting is the following:
'MatlabFunInChart/Chart/VelocityProfile/Cart/Integrator' has sample time '0'. Only constant (inf) or inherited (-1) sample times are allowed in 'function call' subsystem 'MatlabFunInChart/Chart/VelocityProfile'.
It looks like I'm missing something inside the simulink model that has to do with the integration.
Any ideas ?