Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objectives

...

  • Completed Exercise 12.2 and either still has the SysML model open or has saved and reopened it.

Exercise

  1. We start from the model at the end of Exercise 12.2. Save and close the Stateflow model.

  2. Create an empty package in the Syndeia Tutorial Testbed.mdzipSysML model (Three State Model Part 2 in this example).

    Image Added

    Figure 1 Stateflow showing ThreeStates state machine diagram

  3. In Syndeia, go to the Connection Manager tab. Navigate through the SysML model in the left column to show the Three State Model Part 2 package and your local operating system network connection on the right side to show the StateFlow model 1_Demo_ Stateflow, as in in Figure 2.

    Image Added

  4. Select Model Transform for Connection Type in the central column. Drag and drop the ThreeStates statechart onto the destination folder in the local operating system. Click Yes to confirm.
    CAUTION: Drag the Statechart, as highlighted in Figure 2, not the state machine, to create a state machine in the SysML model.

  5. When complete, expand the SysML model in the left column to view new SysML ThreeStates state machine, as shown in Figure 3.

    Image Added

    Figure 3  Syndeia Dashboard, Connection Manager tab, after generation of state machine structure in the MagicDraw package

  6. In MagicDraw, create a SysML state machine diagram in the new state machine. It should appear similar to Figure 4.

    Image Added

    Figure 4  Simulink with Stateflow diagram symbol on left.  Double-click the ThreeStates symbol to open state machine, as shown on right