Skip to Main Content Skip to Search
Accelerating the pace of engineering and science

 

Training - Courses

SLSF: Stateflow for Logic Driven System Modeling

This two-day, hands-on course covers the use of Stateflow in implementing complex decision flows and finite-state machines. Attendees will learn how to employ flow graphs, state machines, and truth tables in Simulink designs. Topics include:

  • Modeling complex logic flows
  • Modeling state machines
  • Implementing hierarchical state machines
  • Implementing multiprocessing state machines
  • Using events in state charts
  • Calling functions from state charts
  • Implementing truth tables
  • Managing the Stateflow design interface
VIEW SCHEDULE and Register SHARE with Manager/Colleague
 
 Detailed course outline
Day 1 of 2
Modeling Complex Logic Flows

Objective: Implement decision flows with flow diagrams.

  • Understanding flow graphs
  • Constructing a flow graph
  • Semantics of a flow graph
Modeling State Machines

Objective: Implement state machines with state diagrams.

  • Understanding state machines
  • Constructing a state machine
  • State actions
  • Semantics of a state transition
  • Inner flow graphs
Implementing Hierarchical State Machines

Objective: Implement hierarchical diagrams to improve clarity of state machine designs.

  • Reasons to use hierarchy
  • Constructing a multilevel state machine
  • Behavior of a multilevel state machine
  • Recovering active substates
  • Semantics of a cross-level state transition
Implementing Multiprocessing State Machines

Objective: Implement parallel states to model multiprocessing designs.

  • Reasons for using parallelism
  • Constructing a multiprocessing state machine
  • Behavior of parallel states
Day 2 of 2
Using Events in State Charts

Objective: Use events within a Stateflow chart to affect chart execution.

  • Using events in state charts
  • Broadcasting events
  • Behavior of state charts that contain events
  • Implicit events
  • Temporal logic operators
Calling Functions from State Charts

Objective: Create functions in a Stateflow chart out of Simulink blocks, MATLAB code, and flow graphs.

  • Types of functions available
  • Simulink functions
  • Embedded MATLAB® functions
  • Graphical functions
Implementing Truth Tables

Objective: Implement truth tables

  • Understanding truth tables
  • Constructing a truth table
  • Populating the condition and action tables
  • Specifying the decision set
  • Binding actions to the decision set
Managing the Stateflow Design Interface

Objective: Reuse Stateflow designs and interact with Simulink data.

  • Considering the design interface in Stateflow software
  • Accessing bus signals and data store memory
  • Creating a reusable design with Stateflow software
  • Sharing data and functions with other charts

Prerequisites

MATLAB® Fundamentals and Simulink® for System and Algorithm Modeling. Knowledge of C programming is helpful.

Course Length - 2 days

Request training