Event-Based Modeling
The MathWorks® products for event-driven systems have applications for the automotive, aerospace, or robotics and automation industries. Your event-based applications can focus on communications, supervisory logic and scheduling, and 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.
Products for Event-Based Modeling
Topics
Supervisory Logic
- Model Launch Abort System (Stateflow)
Model a launch abort system for an orbiter. - Implement an Automatic Transmission Gear System That Controls Transient Signals (Stateflow)
Use debouncing logic to filter out transient signals that do not represent a true change of state. - Model a Wind Turbine Supervisory Control System (Stateflow)
Model a safety control system for a wind turbine. - Hybrid Clutch System (Stateflow)
Model a clutch by using Simulink based states inside a Stateflow chart. - Model Fault-Tolerant Fuel Control System (Simulink)
This example shows how to combine Stateflow® and Simulink® capabilities to model hybrid systems. - Robot Trajectory Planning with Reusable Components (Stateflow)
Use entry and exit ports to create connections across boundaries in the Stateflow hierarchy. - Implement Distributed Control Logic in a Flexible Manufacturing System (Stateflow)
Use atomic subcharts, masks, and parameters to reuse logic in a model of a pick-and-place manufacturing system. - Simulate Scheduler of a Multicore Control System (SimEvents)
Model the task scheduling of a control application using SimEvents blocks.
Fault Detection, Isolation, and Recovery
- Detect and Isolate Faults in an Aircraft Elevator Control System (Stateflow)
Design a fault detection, isolation, and recovery (FDIR) application for a pair of aircraft elevators controlled by redundant actuators. - Model Fault-Tolerant Fuel Control System (Stateflow)
Combine Stateflow and Simulink to model hybrid systems. - Effects of Communication Delays on an ABS Control System (SimEvents)
How stochastic network traffic causes timing latency and uncertainty in an anti-lock braking system that uses CAN communications.
Battery Management
- Model Battery Management System with Stateflow (Stateflow)
Model a system to manage battery SOC, detect faults, and balance battery cells. - Model Battery Management with Custom Code (Stateflow)
Use custom code to design a system for battery management.
Energy Management
- Building Climate Control (Stateflow)
Model a building climate control system with Stateflow. - Vehicle Climate Control System (Stateflow)
Use events to control the climate of a vehicle.
Communication Network Applications
- Model an Ethernet Communication Network with CSMA/CD Protocol (Simulink)
Model an Ethernet communication network with CSMA/CD protocol using Simulink messages and SimEvents. - Analog Triggered Data Acquisition Using Stateflow Charts (Stateflow)
Create an analog-triggered data acquisition app by using Stateflow, Data Acquisition Toolbox™, and App Designer. - Model Bluetooth Low Energy Link Layer Using Stateflow (Stateflow)
Use a standalone Stateflow chart to model the state machine in a Bluetooth® low energy link layer.
Operations Research
- Optimization of Shared Resources in a Batch Production Process (SimEvents)
Identify resource deficiencies and improve capacity planning in a system that shares resources. - Simulation of a Medical Device (SimEvents)
Conduct automated tests to model a medical device that analyzes biology samples. - Aircraft Boarding Process Flow (SimEvents)
Model a process for boarding of an aircraft using SimEvents.