主要内容

本页采用了机器翻译。点击此处可查看英文原文。

运行实时应用程序

交互式执行,支持开发机与目标机

运行实时应用程序时,您可以启动和停止执行;观察信号并记录信号数据;以及调整实时应用程序参数。

您可以使用以下接口运行该应用程序:

App

Simulink Real-Time生成实时应用程序,用于在目标计算机上运行的仿真,并与目标计算机中的 I/O 设备进行交互。
Simulink Real-Time ExplorerInteract with target computer and real-time application running on target computer
Simulink Real-Time TET Monitor观察在目标计算机上运行的实时应用程序的任务执行时间
Simulink Real-Time App GeneratorGenerate instrument panel app to interact with target computer and real-time application running on target computer (自 R2022a 起)

工具

仿真数据检查器检查并比较数据与仿真结果,以验证和迭代模型设计

对象

Target实时呈现应用程序和目标计算机的状态
ApplicationRepresent application files on development computer
Instrument创建实时仪表对象
slrealtime.instrument.LineStyle创建实时仪表线型对象 (自 R2022b 起)

属性

Target Object Propertiesslrealtime Target object properties for configuration and status

函数

全部展开

slrtAppGenerator生成仪表盘应用程序,用于与目标计算机及其上运行的实时应用程序进行交互。 (自 R2022a 起)
slrtExplorer打开 Simulink Real-Time 资源管理器,并与目标计算机及实时应用程序进行交互
slrtTETMonitor打开 Simulink Real-Time 任务执行时间 (TET) 监控器
getApplicationFile获取实时应用程序文件的名称 (自 R2021b 起)
getInstalledApplications获取已安装的实时应用程序文件列表 (自 R2021b 起)
getLastApplication获取目标计算机上最近运行的实时应用程序名称 (自 R2021b 起)
getRootLevelInports返回应用程序中的根级输入端口 (自 R2022a 起)
startStart execution of real-time application on target computer
stop停止实时应用程序的执行并将其从目标计算机卸载
removeAllApplications从目标计算机中移除所有 Simulink Real-Time 应用程序 (自 R2022b 起)
removeApplication从目标计算机 Speedgoat 中卸载应用程序 Simulink Real-Time (自 R2022a 起)
updateRootLevelInportData在实时应用中用输入数据替换外部输入数据
updateStartupParameterSetUpdate the startup parameter set for an application (自 R2021a 起)
pausePause stimulation of root inports of model on target computer (自 R2021a 起)
startStart stimulation of root inports of model on target computer (自 R2021a 起)
stopStop stimulation of root inports of model on target computer (自 R2021a 起)
reloadDataReload data signal of root inports of model on target computer (自 R2021a 起)
configureModelForTargetPlatform配置模型以构建选定且可连接的目标计算机 (自 R2024a 起)
getSTFName获取所选且可连接目标计算机的系统目标文件名 (自 R2024a 起)
getVersion获取 MATLAB、支持包以及 Speedgoat I/O 模块集的版本信息 (自 R2023a 起)
getStatusReturn status of root inports stimulation of model on target computer (自 R2021a 起)
getTargetTime获取目标计算机的日期和时间 (自 R2025a 起)
getTargetTimezone获取目标计算机时区信息 (自 R2025a 起)
setTargetTime设置目标计算机的日期和时间 (自 R2025a 起)
setTargetTimezone设置目标计算机时区偏好 (自 R2025a 起)
slrealtime目标计算机管理接口
updateAutoSaveParameterSetOnStop更新应用程序停止时的自动保存参数集 (自 R2022b 起)
slrealtime listApplications(QNX Neutrino 目标计算机实时操作系统) 从目标计算机命令行获取已安装实时应用程序文件列表
slrealtime load(QNX Neutrino 目标计算机实时操作系统) 将实时应用程序加载到目标计算机
slrealtime start(QNX Neutrino target computer RTOS) Start execution of real-time application on target computer
slrealtime stop(QNX Neutrino 目标计算机实时操作系统) 停止目标计算机上实时应用程序的执行
slrealtime install(QNX Neutrino 目标计算机实时操作系统) 在目标计算机上安装实时应用程序
slrealtime saveParamSet(QNX Neutrino target computer RTOS) Save real-time application parameter values (自 R2021a 起)
slrealtime loadParamSet(QNX Neutrino 目标计算机实时操作系统) 恢复指定文件中保存的参数值 (自 R2021a 起)
shutdown(QNX Neutrino 目标计算机实时操作系统) 在关闭目标计算机电源前安全关闭实时操作系统

主题

从开发计算机

从目标计算机

疑难解答

Simulink Real-Time 中的故障排除

在使用 Simulink Real-Time 产品时遇到的问题的故障排除