# Control Logic

## Control logic for modeling reactive systems

Control logic is the part of a controller that defines how a reactive system responds to events or conditional changes. Applications for control logic include:

• Supervising how to switch between different modes of operation
• Scheduling a sequence of tasks or steps for a system
• Defining fault detection, isolation, and recovery logic

Common tasks for modeling control logic include:

• Modeling hierarchical state machines for large-scale systems
• Adding flow charts to define complex control logic
• Defining orthogonal states to represent systems with parallelism

For details, see Simulink® and Stateflow®.