Stateflow® shares data with your Simulink® model through input and output ports. You can trigger your Stateflow chart from events in Simulink. From Stateflow, you can output events to activate Simulink subsystems. You can model conditional and time-based logic to call Simulink and MATLAB functions.