Delays may be implemented inside a Stateflow chart using transitions and temporary variables. Download the attached models (delaystate.mdl and delaystate1.mdl) and compare the simulation results obtained using delay blocks and the Stateflow chart.
Notes:
1. The number of temporary variables is equal to the number of times the input needs to be delayed.
2. The temporary variables in Stateflow charts cannot be used to resolve algebraic loops, like Unit-Delay Blocks (refer delaystate2.mdl).
Best Answer