Here are the tasks for modeling hybrid systems containing mode logic in continuous time using Stateflow® charts.
|Task||Example in Bouncing Ball Model|
Choose a solver that supports continuous states (see About Solvers (Simulink)).
Add system dynamics.
Validate semantics, based on design considerations for continuous-time simulation.
Simulate the chart.
Debug and revise.