Documentation

Interface with Simulink

Configure event triggers, system inputs, and system outputs.

Stateflow® shares data with your Simulink® model through input and output ports. You can trigger your Stateflow chart from events in Simulink. From Stateflow, you can output events to activate Simulink subsystems. You can model conditional and time-based logic to call Simulink and MATLAB functions.

  • Input and Output Data
    Create inputs from and outputs to Simulink.
  • Active State Data
    Create self, child, or leaf active state data to use as output or local.
  • Input and Output Events
    Create triggers to which systems react and triggers that activate other systems.
  • Messages
    Send Stateflow objects that carry data and are queued.
  • Parameters
    Share parameters with Simulink to avoid hard-coded values.
  • Masking
    Mask a Stateflow block to customize appearance, parameters, and documentation.
  • Global Data
    Access date across multiple charts or models
  • Bus Signals
    Manage large data structures.
  • Sample Time
    Create charts that respond to continuous and discrete mode changes.

Featured Examples

Was this topic helpful?