处理数据和信号
管理图数据并对信号变化做出响应,以检测变化、触发动作的数据驱动事件以及表示和处理数据的复数数据类型
添加和配置数据以存储和计算状态及转移的值。管理数据作用域、大小和类型以优化数据接口。使用输入事件、输出事件和数据映射处理 Simulink® 信号。
主题
- Detect Data Changes
Find changes in data values between time steps by using Stateflow operators to trigger state transitions based on variable changes or threshold crossings.
- Create Data-Driven Events
Trigger state transitions by using data-driven events based on changes in data values.
- Use Complex Data Types
Represent values with real and imaginary components for engineering and scientific applications by using complex data types in Stateflow charts.
- Maintain Data Type Compatibility
Preserve data type compatibility in Stateflow charts by defining explicit types, applying proper casting operations, and following action language rules.