信号记录与 MATLAB
信号值记录
要记录信号值和时间,请使用仿真数据检查器标记要记录的信号,或在模型中添加 File Log。
File Log 模块在目标计算机上收集信号数据,并在每次仿真运行后将数据发送至开发计算机。或者,如果目标计算机未连接到开发计算机,您可以在连接目标计算机时将数据上传至开发计算机。
对象
Target | 实时呈现应用程序和目标计算机的状态 |
Target.FileLog | Target Computer file logger |
Instrument | 创建实时仪表对象 |
slrealtime.instrument.LineStyle | 创建实时仪表线型对象 (自 R2022b 起) |
函数
discard | Delete file log data from target computer |
list | 获取信号数据可用文件日志的相关信息 |
import | Import file log data from target computer |
openImportDialog | 获取信号数据可用文件日志的相关信息 (自 R2023b 起) |
slrealtime.fileLogImport | After copying file logs from the target computer to the development computer, import file logs into Simulation Data Inspector (自 R2021a 起) |
slrealtime.fileLogList | After copying file logs from the target computer to the development computer, list available file logs for import into Simulation Data Inspector (自 R2021a 起) |
startRecording | 启动信号数据实时流传输和文件日志记录 (自 R2022a 起) |
stopRecording | 停止信号数据实时流传输和文件日志记录 (自 R2022a 起) |
主题
背景
- Real-Time Signal Logging and Streaming Basics
Acquire signal data while running a real-time application and transfer the data to the development computer for analysis. - 实时信号记录与参数调优
此示例演示了如何使用 Simulink® Real-Time™ 进行实时参数调优和数据记录。
MATLAB 接口
- Target and Application Objects
Use the MATLAB® Command Window to change properties and control the target computer and your real-time application. - 实时应用的仪表应用程序
通过仪表盘应用程序与您的实时应用程序进行交互。
限制
- Troubleshoot Signals Not Accessible by Name
Investigate issues for some signal types prevent file logging or streaming. - Internationalization Issues for Simulink Real-Time
Learn about Simulink® Real-Time™ support for internationalization.
疑难解答
在使用 Simulink Real-Time 产品时遇到的问题的故障排除