Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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
  • Data Stores
    Access data 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?