To determine order of execution for specific Simulink® subsystems, use schedulers. You can schedule either one or multiple subsystems to execute at multiple times within the same time step. With schedulers, you can choose the order that multiple subsystems are executed and how many times a subsystem is executed.
Design ladder logic, loop, and temporal logic scheduler algorithms in your state machines.
Create function-call output events to trigger execution of function-call subsystems by by using a ladder logic scheduler.
Use a loop scheduler to implement a for loop to broadcast an event multiple times in a single time step.
Use a temporal logic scheduler to create rate-based function calls that execute Simulink subsystems at specific times.
Schedule calls to Simulink and MATLAB® functions by using conditional and time-based logic in Stateflow®