Main Content

Process Data and Signals

Manage chart data and react to signal changes to detect changes, data-driven events to trigger actions, and complex data types to represent and process data

Add and configure data to store and compute values for states and transitions. Manage data scope, size, and type to optimize data interfaces. Process Simulink® signals using input events, output events, and data mappings.

Topics

  • Detect Data Changes

    Find changes in data values between time steps by using Stateflow operators to trigger state transitions based on variable changes or threshold crossings.

  • Create Data-Driven Events

    Trigger state transitions by using data-driven events based on changes in data values.

  • Use Complex Data Types

    Represent values with real and imaginary components for engineering and scientific applications by using complex data types in Stateflow charts.

  • Maintain Data Type Compatibility

    Preserve data type compatibility in Stateflow charts by defining explicit types, applying proper casting operations, and following action language rules.