SysML to Stateflow Change, Compare, and Sync.

This section demonstrates sync of changes in a SysML State Machine to connected Stateflow State Chart.

  1. Begin with connected/in sync models (from previous tutorials) & modify SysML State Machine as shown below



  2. Compare SysML & Target again, then sync SysML -> Target



  3. Reopen Simulink/Stateflow model, note the changes that were made, & rearrange if desired



  4. Compare to see models back in sync



  5. Arrange and then modify connected Stateflow Chart in Simulink model



  6. Save Simulink model and compare again.



  7. Sync Target -> SysML is not supported for State machines in Rhapsody. To remove changes made in Stateflow and/or implement changes made to the state machine in SysML, Sync SysML -> Target.



  8. View the changes made to revert Stateflow State Chart to its former state.



  9. Compare to see models back in sync