This example shows the use of function call event outputs from a Stateflow® chart to drive other Stateflow® charts as well as Simulink® function call subsystem.
The chart called Source has two output events called out_fcn and out_fcn_two which are toggled by the two parallel states One and Two respectively.
The out_fcn event is connected through Simulink® to drive the Stateflow chart called Function-Call Chart. Since Source calls the out_fcn event every three simulation time steps, therefore, the Function-Call Chart toggles state once every three time steps rather than every simulation step.
Similarly, the 'Function-call Subsystem' is activated every 2 time steps by receiving the function call signal named 'out_fcn_two'.