Products

Novartis Accelerates Model Development Process with MathWorks Tools

Having a single, widely used package in our industry that has many capabilities for solving ordinary differential equations as well as optimization and statistical capabilities is quite valuable. That is why we use MathWorks tools. - Anna Georgieva, Novartis

Yokogawa Electric Develops Key Components for Next-Generation Optical Networks with Simulink and Men

"End-to-end system development with Simulink has streamlined our current design flow. We found virtually all bugs before hardware prototyping using Simulink and Mentor Graphics, and this cut development time in half." - Chie Sato, Yokogawa Electric Corporation

Description

Introduction

Stateflow® extends Simulink® with a design environment for developing state machines and flow charts. Stateflow provides the language elements required to describe complex logic in a natural, readable, and understandable form. It is tightly integrated with MATLAB® and Simulink, providing an efficient environment for designing embedded systems that contain control, supervisory, and mode logic.

Stateflow charts enable the graphical representation of hierarchical and parallel states and the transitions between them. Stateflow augments traditional state charts with flow charts, MATLAB Coder™ functions, graphical functions, truth tables, temporal operators, directed-event broadcasting, and support for integrating hand-written C code.

You can automatically generate C code from Stateflow charts using Simulink® Coder (available separately).

Key Features

  • Provides language elements, hierarchy, parallelism, and deterministic execution semantics for describing complex logic in a natural and understandable form
  • Defines functions graphically, using flow diagrams; procedurally, using MATLAB functions; and in tabular form, with truth tables
  • Schedules transitions and events using temporal logic
  • Supports Mealy and Moore finite-state machines
  • Incorporates custom and legacy C code with input and output arguments
  • Supports bus signals and vector, matrix, and fixed-point data
  • Performs static checks, including checks for ill-specified truth tables
  • Performs run-time checks for transition conflicts, cyclic problems, state inconsistencies, data-range violations, and overflow conditions
  • Animates Stateflow charts and logs data during simulation to enhance understanding of the system and facilitate debugging
  • Includes an integrated debugger for setting graphical breakpoints, stepping through charts, and browsing data