Represent Combinatorial Logic Using Truth Tables

Here is the recommended workflow for using truth tables in Simulink® models.

1Add a truth table to your Simulink model.

Build Model with Stateflow Truth Table

2Specify properties of the truth table function.

Specify Properties of Truth Table Functions in Stateflow Charts

3Select an action language and program the conditions and actions in the truth table.

Program a Truth Table

4Debug the truth table for syntax errors and for errors during simulation.

Debug a Truth Table

5Simulate the model and check the generated content for the truth tables.

How Stateflow Generates Content for Truth Tables

Was this topic helpful?