Documentation

  • Documentation Home
  • Stateflow
  • Design Patterns and Applications

Category

  • Schedulers
  • Debouncers
  • Fault Detection, Isolation, and Recovery
  • App Design
  • All
  • Examples
  • Functions
  • Blocks
  • All
  • Examples
  • Functions
  • Blocks

Debouncers

Filter out the oscillation of transient signals

Debouncing logic filters out transient signals that do not represent a true change of state. Simplify your debouncer design by using the duration operator. For advanced filtering techniques, such as fault detection, use intermediate graphical states.

Topics

Reduce Transient Signals by Using Debouncing Logic

Design state machines that are resilient to rapidly changing signals.

Control Oscillations by Using the duration Operator

Simplify debouncing logic in charts that have transient signals.

Featured Examples

View Sequential Logic Through State Transition Matrix

View Sequential Logic Through State Transition Matrix

Use the State Transition Matrix view for a state transition table in Stateflow®. Instead of drawing states and transitions graphically in a Stateflow chart, use state transition tables to express the modal logic in tabular format. State transition tables are supported only as blocks in a Simulink® model. For more information, see State Transition Tables in Stateflow.

Open Model
Implement an Automatic Transmission Gear System by Using the duration Operator

Implement an Automatic Transmission Gear System by Using the duration Operator

Models an automotive transmission system by using the Stateflow® temporal logic operator duration to automatically shift gears based on the vehicle's throttle requirements and speed. For more information, see Control Chart Execution by Using Temporal Logic.

Open Model

Stateflow Documentation

  • Examples
  • Blocks and Other Reference
  • Release Notes
  • PDF Documentation

Support

  • MATLAB Answers
  • Installation Help
  • Bug Reports
  • Product Requirements
  • Software Downloads

© 1994-2020 The MathWorks, Inc.

  • Terms of Use
  • Patents
  • Trademarks
  • Acknowledgments