Active State Data

Create self, child, or leaf active state data to use as output or local.

Stateflow® can create enumerated data that represents the current active state during simulation. The data can be output to Simulink® or used as local data. This active state data can be used to drive Simulink subsystems or it can be logged for diagnostics.


About Active State Data

Creation of data to monitor state activity.

When to Use Active State Output Data

Active state data can simplify your design

Set Active State Data as Local

Modify state activity data to be local scope

Limitations for Active State Data

Design constructs that do not support state activity data

Use Active State Output Data

Example of using active state outputs

Change the Active State Port Name

Set the name of the port for active state outputs

Define State Activity Enum Name and Type

Define the enumeration name and type definition.

Related Information

Was this topic helpful?