基于事件建模
对事件驱动的系统进行建模、仿真、测试和优化
针对事件驱动系统的 MathWorks® 产品适用于汽车、航空航天或机器人和自动化行业。基于事件的应用程序可以专注于通信、监督逻辑和调度以及运筹学。
Stateflow® 提供了一种图形语言,包括状态转移图、流程图、状态转移表和真值表。您可以使用 Stateflow 来描述 MATLAB® 算法和 Simulink® 模型如何对基于事件和时间的条件作出反应。您可以使用 Stateflow 来设计和开发监控、任务调度、故障管理、通信协议、用户界面和混合系统。
SimEvents® 提供一个离散事件仿真引擎和组件库,用于分析事件驱动的系统模型以及优化延迟、吞吐量和数据包丢失等性能特征。借助 SimEvents,您可以研究任务时间安排和资源使用对系统性能的影响,并为与预测、产能规划和供应链管理相关的决策执行运营研究。
主题
监督逻辑
- 对发射中止系统进行建模 (Stateflow)
对轨道飞行器的发射中止系统进行建模。 - 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. - 容错燃油控制系统建模 (Simulink)
此示例说明如何结合使用 Stateflow® 和 Simulink® 的功能来进行混合系统建模。这种类型的建模对于具有基于离散事件的多种可能运行模式的系统特别有用。传统的信号流在 Simulink 中处理,而控制配置的更改在 Stateflow 中实现。此示例中所述的模型表示一个汽油发动机的燃油控制系统。该系统具有稳健性,因为它可以检测到单个传感器的故障,并且可以动态重新配置控制系统以实现不间断运行。 - 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.
故障检测、隔离和恢复
- 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.
电池管理
- 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.
能源管理
- 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.
通信网络应用
- 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.
运筹学
- 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.