Dear all, I'm bit confused of selecting a method to do some calculating program in a 'State' of the Stateflow. I do have to calculate some values checking some external measurements within a 'State'. I used to write some codes of calculation in the state block like Matlab script, but I then moved this code to Matlab Function block, since the state machine just better to show the state changes visually. Still, I am looking for the best way of doing such thing in sateflow while minimizing the execution time. Can anyone suggest me a better way to do such things (writing matlab codes in stateflow states)?
MATLAB: What is the best way to do some calculation within a state in stateflow
simulinkstate machinestateflow
Related Question
- Stateflow variant states possible
- Stateflow question: transitions evaluated before state is executed
- Can states in Stateflow charts be listed in order of execution in a generated report by Simulink Report Generator
- Is there an equivalent of “mock functions” for linked atomic subcharts
- How to determine the “active state” in a Stateflow diagram for Stateflow 7.0 (R2007b)
- Stateflow, Determine Initial State
Best Answer