Documentation

Simulink Subsystems as States

Create Simulink based states within your Stateflow® chart.

Model continuous or periodic Simulink® algorithms embedded in Stateflow states. Save a Simulink based state as a subsystem in a custom library. When the library block is updated, the changes are reflected in all Stateflow charts containing the block.

Topics

Simulink Subsystems as States

Use Simulink within a Stateflow state to model hybrid systems.

Create and Edit Simulink Based States

Describes the workflow for creating a Simulink based state.

Access Block State Data

Learn how to access your Simulink based states textually and graphically.

Map Variables for Simulink Based States

Ensure that each variable in your Simulink based state maps to the correct outputs for your chart.

Set Simulink Based State Properties

How to specify properties for your Simulink based state.

Limitations

Modeling constructs that do not support Simulink based states.

Was this topic helpful?