Main Content

Event-Based Modeling

Model, simulate, test, and optimize event-driven systems

The MathWorks® products for event-driven systems have applications for the automotive, aerospace, or robotics and automation industry. Your event-based applications can focus on communication or supervisory logic, control, and scheduling as well as operations research.

Stateflow® provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. You can use Stateflow to describe how MATLAB® algorithms and Simulink® models react to events and time-based conditions. With Stateflow you can design and develop supervisory control, task scheduling, fault management, communication protocols, user interfaces, and hybrid systems.

SimEvents® provides a discrete-event simulation engine and component library for analyzing event-driven system models and optimizing performance characteristics such as latency, throughput, and packet loss. With SimEvents, you can study the effects of task timing and resource usage on the performance of your system and conduct operational research for decisions related to forecasting, capacity planning, and supply-chain management.




  • Launch Abort System (Stateflow)
    Model a launch abort system for an orbiter heading into outer space.
  • Detect Faults in Aircraft Elevator Control System (Stateflow)
    This example shows how to design a fault detection, isolation, and recovery (FDIR) application for a pair of aircraft elevators controlled by redundant actuators.
  • UAV Package Delivery (UAV Toolbox)
    Implement a small multicopter simulation to takeoff, fly, and land in a city environment.

Robotics and Automation


Supervisory Logic, Control, and Scheduling

Operations Research