Stateflow User's Guide Previous page   Next Page

Truth Table Functions


Stateflow uses functions to capture programming steps that you call repeatedly in a Stateflow diagram. In truth tables, you specify logical behavior with conditions, decisions, and actions. For purely logical behavior, truth tables are easier to program, easier to maintain, and easier for others to read than graphical functions. Truth tables also help you complete your function by telling you whether you have specified enough or too many decisions for the conditions you specify. To learn how to construct successful truth tables, see the following sections:
What Is a Truth Table?
Describes the truth tables that Stateflow truth table functions implement.
Building a Simulink Model with a Stateflow Truth Table
Shows you how to create a Simulink model that calls and executes a Stateflow diagram with a truth table.
Programming a Truth Table
Describes procedures for programming a truth table.
Debugging a Truth Table
Shows you how to use the Parser and Debugging window during simulation to debug a truth table.
Options for Assigning Actions to Decisions in Truth Tables
Gives you a complete set of rules and options for assigning actions to decisions in a truth table.
Truth Table Editor Operations
Describes the editing operations available to you in the truth table editor.
Correcting Over- and Underspecified Truth Tables
Describes over- and underspecified truth tables detected by Stateflow error checking.
Model Coverage for Truth Tables
Describes and interprets the results of an example model coverage report for a truth table.
How Stateflow Realizes Truth Tables
Describes the way that Stateflow generates graphical functions to realize truth tables.


Previous page  Imported Data What Is a Truth Table? Next page

© 1994-2005 The MathWorks, Inc.