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

 

Training - Courses

SLSF: Stateflow for Logic Driven System Modeling

Note: A 1 hour test session will be scheduled one day prior to the first day of class. This session is to verify that the visual and audio connection is working properly on your computer. The required product software should be installed for the test session. It is highly recommended that you attend this session to ensure a successful and timely class start.

This two-day course shows how to implement complex decision flows and finite-state machines using Stateflow®. The course focuses on 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
  • 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