使用 MATLAB 语言创建并执行实时应用程序
实时应用程序配置与执行
要以可重复的方式运行您的实时应用程序,请使用 MATLAB® 语言构建、下载、配置并运行您的实时应用程序。您可以:
交互式运行程序或启动自动化运行及测试序列。
在运行期间、运行前或运行后调整参数。
在开发计算机或目标计算机上配置、查看和记录信号(用于从应用程序进行流式传输)。
对象
Target | 实时呈现应用程序和目标计算机的状态 |
Application | Represent application files on development computer |
Instrument | 创建实时仪表对象 |
slrealtime.instrument.LineStyle | 创建实时仪表线型对象 (自 R2022b 起) |
SystemLog | 创建一个包含当前控制台日志的系统日志对象 |
Stimulation | 目标计算机模型根端口激励器对象 (自 R2021a 起) |
属性
| Target Object Properties | slrealtime Target object properties for configuration and status |
函数
主题
应用程序准备与执行
- Simulate Simulink Model by Using MATLAB Language
Run a Simulink® model from the Command Window. - Define and Update Inport Data by Using MATLAB Language
Map root inports to source data. - Stimulate Root Inport by Using MATLAB Language
This example shows how to stimulate the root inports in a real-time application that is running on a target computer. - Prepare Real-Time Application by Using MATLAB Language
Build a real-time application in the Command Window and download it to the target computer. - Execute Real-Time Application with MATLAB Language
Start, stop, and view the real-time application from the Command Window. - Save and Reload Parameters by Using Simulink Real-Time Explorer
Save real-time application parameter values to a file on the target computer.
MATLAB 接口
- Target and Application Objects
Use the MATLAB Command Window to change properties and control the target computer and your real-time application. - 实时应用的仪表应用程序
通过仪表盘应用程序与您的实时应用程序进行交互。 - Save and Reload Parameters by Using the MATLAB Language
Save real-time application parameter values to a file on the target computer.
疑难解答
在使用 Simulink Real-Time™ 产品时遇到的问题的故障排除