Truth table functions implement combinatorial logic design in a concise, tabular format. Include a truth table inside a Stateflow® chart or add a Truth Table block directly to your Simulink® model.
|Truth Table||Represent logical decision-making behavior with conditions, decisions, and actions|
Specify function calls in states and transitions.
Express combinatorial logic in tabular form.
Construct truth tables in the Stateflow Editor.
Specify truth table conditions and actions by using MATLAB® or C syntax.
Define the logical behavior of a truth table.
Use breakpoints to debug truth tables.
Run diagnostic checks to detect errors in truth table specification.
Truth table logic is implemented as flow charts and MATLAB functions.
Use truth tables to map fault conditions to their consequent actions.
Extend the scope of your functions to other blocks in a Simulink model.
Encapsulate reusable functions in a separate namespace.