本页面提供的是上一版软件的文档。当前版本中已删除对应的英文页面。
App 设计
控制在 App 设计工具中创建的 MATLAB® App 的行为
使用 Stateflow® 创建定义 MATLAB App 行为的状态机。Stateflow 图可以监控您与 App 的交互,并相应地启用或禁用 App 小组件。对于 Simulink® 模型中的图,使用关键字 this
在 App 和图之间建立双向连接,如Model a Power Window Controller中所示。对于 MATLAB 中的独立图,使用 App 启动回调创建一个可以与 App 通信的图对象,如使用 Stateflow 图设计人机界面逻辑中所示。
Stateflow 语法
this | Access chart data during simulation |
主题
将 App 连接到 Simulink 模型中的图
- Model a Power Window Controller
Design an automotive power window system by using local events. - Simulate a Media Player
Use string data to define the behavior of a media player. - Model a Fitness Tracker
Implement a fitness tracker by using temporal logic and messages.
将 App 连接到 MATLAB 中的独立图
- 使用 Stateflow 图设计人机界面逻辑
在独立 Stateflow 图中对图形用户界面的逻辑建模。 - Model a Fitness App by Using Standalone Charts
Implement a fitness tracker by using multiple standalone charts and a MATLAB app. - Analog Triggered Data Acquisition Using Stateflow Charts
Create an analog-triggered data acquisition app by using Stateflow, Data Acquisition Toolbox™, and App Designer.