创建用于仿真的信号数据
创建输入数据以作为仿真输入加载到模型中。您可以在 MATLAB® 工作区中或使用 Signal Editor 模块创建信号数据。
模块
Signal Editor | 显示、创建、编辑和切换可互换场景。 |
实时编辑器任务
创建信号 | Create signal in Live Editor (自 R2022b 起) |
工具
信号编辑器 | Create and edit input signals |
函数
signalBuilderToSignalEditor | Import signal data and properties from Signal Builder block to Signal Editor block |
signalbuilder | (不推荐)创建和访问 Signal Builder 模块 |
Simulink.io.getFileTypeDiagnostics | Return structure with NamespaceErrors field for
Simulink.io.FileType objects (自 R2021a 起) |
类
Simulink.io.BaseWorkspace | Read data in format used by base workspace (自 R2021a 起) |
Simulink.io.FileType | Base class for file type readers for Simulink interfaces such as Signal Editor (自 R2020a 起) |
Simulink.io.MatFile | Read data in MAT file format (自 R2021a 起) |
Simulink.io.MDF | Read data in MDF-file format (自 R2023b 起) |
Simulink.io.ModelWorkspace | Read data in format used by model workspace (自 R2021b 起) |
Simulink.io.PluggableNamespace | Register Simulink.io.FileType objects from different name
space (自 R2021a 起) |
Simulink.io.SignalBuilderSpreadsheet | Read spreadsheet in format used by Signal Builder (自 R2020a 起) |
Simulink.io.SLDVMatFile | Read Simulink Design Verifier format data in MAT file (自 R2022a 起) |
主题
- 创建和编辑信号数据
使用信号编辑器可创建和编辑输入信号并组织它们以用于根级端口映射或多个仿真。
- Change Signal Editor Default Layout
Optimize the Signal Editor layout by creating your own customized layout.
- Use Scenarios and Insert Signals in Signal Editor
Work with scenarios and signals in Signal Editor.
- Work with Basic Signal Data
Basic operations such as signal and data creation.
- Create Signals with MATLAB Expressions and Variables
Use MATLAB expressions to create signals in Signal Editor.
- Create Freehand Signal Data Using Mouse or Multi-Touch Gestures
Create signal data with mouse and multi-touch gestures.
- Import Custom File Type
Import custom file types to Signal Editor or Root Inport Mapper.
- Create Custom File Type for Import
To import custom file types to Signal Editor and Root Inport Mapper, create custom file type readers for your data.
- Create sldvData Custom File Type Reader to Import to Signal Editor
Import Simulink® Design Verifier™
sldvData
structures into Simulink for editing. - Export Signals to Custom Registered File Types
From Signal Editor, export signals to custom registered file types.