Versions Compared

Key

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

Objectives

...

^(([a-zA-Z0-9_][a-zA-Z0-9_ ():-]*)|(operator.+))$

Exercise

  1. Open the Syndeia Tutorial Testbed.rpy rpy model. We will demonstrate the Syndeia Stateflow interface using the Three States State Machine in the Three State Model package shown in Figure 1.

    Figure 1 Rhapsody showing ThreeStates state machine diagram

  2. Launch the Syndeia dashboard from the ThreeStates package in the Rhapsody model view browser, select a Syndeia Cloud project if necessary, and go to the Connection Manager tab. Expand your SysML model in the left column to show the ThreeStates state machine and your local operating system network connection on the right side to show the empty destination folder (1_Demo_ Stateflow_Rhp in Figure 2).

    Figure 2  Syndeia Dashboard, Connection Manager tab

  3. Select Model Transform for Connection Type in the central column. Drag and drop the Three States::statechart_0 state machine onto the destination folder in the local operating system. Click Yes to confirm. When complete, expand the newly-created Simulink Model to view the new Stateflow State Chart and its contents, as shown in Figure 3.

    Figure 3  Syndeia Dashboard, Connection Manager tab, after generation of state machine structure in the local file system (red highlight shows statechart_0.slx Simulink model).

  4. In the Connection Manager, right-click the statechart_0.slx Simulink model (see red highlight in Figure 3) and choose Open. Double-click the state chart symbol (left side, Figure 4) to see the states and transitions (right side, Figure 4).

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

  5. Rearrange the states and transitions as in Figure 5. The model is ready to add triggers, state behaviors and other stateflow elements. Save and close Simulink model when done.

    Figure 5 Stateflow state chart, final.

...