What Is Stateflow? - MATLAB & Simulink
Video Player is loading.
Current Time 0:00
Duration 2:06
Loaded: 7.87%
Stream Type LIVE
Remaining Time 2:06
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 2:06

    What Is Stateflow?

    Stateflow® provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. Use Stateflow to describe how MATLAB® algorithms and Simulink® models react to input signals, events, and time-based conditions.

    Design and develop supervisory control, task scheduling, fault management, communication protocols, user interfaces, and hybrid systems.

    Model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Use graphical animation for analyzing and debugging your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.

    Published: 1 Jul 2021

    State flow simplifies designing systems that contain complex logic or switch between multiple modes of operation by leveraging state diagrams, flow charts, and truth tables. State flow is used to develop applications such as supervisory control and task scheduling, fault management, test and measurement and interface logic, and communication protocols. A single chart can represent an entire specification document. But these diagrams aren't just static pictures.

    Stateflow charts are blocks in a Simulink model. Just click the Run button and see that they are part of a larger modeling and simulation environment that enables you to simulate and evaluate your design's performance and behavior. Stateflow animation and graphical debugging enables you to examine how your design transitions between states.

    You can review how your scenario unfolded with diagnostic tools like the Sequence Viewer. You can link your design directly to requirements, check that it complies with industry standards, and collect coverage metrics, ensuring everything is working correctly.

    Once you've verified and validated your design's behavior, you can automatically generate C, C++, HDL, and PLC code. This lets you leverage your work directly on implementation platforms without writing thousands of lines of code by hand.

    Similarly, you can automate the creation of the documentation that accompanies your design. If you double up MATLAB applications without using Simulink models, you can still use state flows to simplify your designs. In MATLAB, Stateflow charts are represented as objects that you can use to program robots or any of our timing as important.

    The same chart can represent the logic for multiple objects. This makes it simple to change the number of objects in a scenario. To learn more or start a trial, please refer to the StateFlow product page.

    View more related videos