基于事件建模
对事件驱动的系统进行建模、仿真、测试和优化 
针对事件驱动系统的 MathWorks® 产品适用于汽车、航空航天或机器人和自动化行业。基于事件的应用程序可以专注于通信、监督逻辑和调度以及运筹学。
Stateflow® 提供了一种图形语言,包括状态转移图、流程图、状态转移表和真值表。您可以使用 Stateflow 来描述 MATLAB® 算法和 Simulink® 模型如何对基于事件和时间的条件作出反应。您可以使用 Stateflow 来设计和开发监控、任务调度、故障管理、通信协议、用户界面和混合系统。
SimEvents® 提供一个离散事件仿真引擎和组件库,用于分析事件驱动的系统模型以及优化延迟、吞吐量和数据包丢失等性能特征。借助 SimEvents,您可以研究任务时间安排和资源使用对系统性能的影响,并为与预测、产能规划和供应链管理相关的决策执行运营研究。
主题
汽车
- 使用 Stateflow 图自动控制智能车辆 (Stateflow)
 使用由相同决策逻辑控制的智能车辆进行高速公路场景建模。
- Traffic Light Negotiation (Automated Driving Toolbox)
 Design and test decision logic for negotiating a traffic light at an intersection.
- 容错燃油控制系统建模 (Simulink)
 此示例说明如何结合使用 Stateflow® 和 Simulink® 的功能来进行混合系统建模。这种类型的建模对于具有基于离散事件的多种可能运行模式的系统特别有用。传统的信号流在 Simulink 中处理,而控制配置的更改在 Stateflow 中实现。此示例中所述的模型表示一个汽油发动机的燃油控制系统。该系统具有稳健性,因为它可以检测到单个传感器的故障,并且可以动态重新配置控制系统以实现不间断运行。
- Hybrid Clutch System (Stateflow)
 Model a clutch by using Simulink based states inside a Stateflow chart.
- 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.
航空航天
- Model Launch Abort System (Stateflow)
 Model a launch abort system for an orbiter.
- 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.
- UAV Package Delivery (UAV Toolbox)
 Implement a small multicopter simulation to takeoff, fly, and land in a city environment.
机器人和自动化
- Robot Trajectory Planning with Reusable Components (Stateflow)
 Use entry and exit ports to create connections across boundaries in the Stateflow hierarchy.
- Pick-and-Place Workflow Using Stateflow for MATLAB (Robotics System Toolbox)
 Design a pick-and-place workflow for a robotic manipulator such as Kinova® Gen3 using Stateflow.
通信
- 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.
监督逻辑和调度
- 使用消息对分布式交通控制系统建模 (Stateflow)
 对单行道交叉路口的分布式控制系统建模。
- Simulate Scheduler of a Multicore Control System (SimEvents)
 Model the task scheduling of a control application using SimEvents blocks.
- Design and Evaluate Successive Approximation ADC Using Stateflow (Mixed-Signal Blockset)
 Design and evaluate a 12-bit successive approximation register ADC.
运筹学
- 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.