负载信号数据进行仿真
您可以使用几种不同的方法将数据加载到模型中,包括:
根级输入端口 - 使用工作空间导入信号数据,使用输入配置参数将其导入到一个根级输入端口inport.,Enable, or扳机堵塞。要将许多信号导入根级输入端口,请考虑使用root Inport映射器工具.
From Fileblock — Read data from a MAT-file, outputting the data as a signal.
来自电子表格block — Read data from Microsoft® Excel® spreadsheets or CSV spreadsheets, outputting the data as one or more signals.
Source blocks — Add a source block, suchSine Waveblock, to generate signals to input to another block.
Signal Editor块 - 显示,创建,编辑和切换可互换方案。
Persistent data — Stream big data from a MAT-file into a model.
您可以在文件,工作区变量或型号参数中创建输入信号数据。您可以使用以前的模拟中登录的数据从另一个源或创建数据。要确定使用哪种信号加载方法,请参阅信号加载技术的比较.
块
Functions
金宝appSimulink配置参数
Topics
Signal Loading
识别模型信号数据要求和加载输入信号数据。
Overview of Signal Loading Techniques
了解可用于将信号数据导入模型的技术。
Determine the signal loading approach that meets your modeling requirements. Often, mapping signal data to root inports works well.
Load Signal Data That Uses Units
负载信号数据,该数据使用从先前模拟中记录的数据的单位。信号日志记录,to文件块和to workspace块可以包括用于数据集的单位信息或者日志记录格式。
Load signal data into a model that was logged in a previous simulation.
Import signal data to a continuous plant model, which uses signal data that is smooth and uninterrupted in time, with a signal data for each time value.
Load Data to Test a Discrete Algorithm
Test a discrete algorithm by importing discrete signals, which are signals that you define using evenly spaced time values. One signal value is read at each time step, using the sample time of the source block.
Load Data for an Input Test Case
When you import signal data for most input test cases, try to minimize the number of time points. The signal data that you load includes samples with ramps and discontinuities.
将数据加载到根级输入端口
Load data from a workspace and apply it to a root-level input.
Load Bus Data to Root-Level Input Ports
Import bus data to top-level input ports by manually specifying the data in the Input configuration parameter or by using the Root Inport Mapper tool.
要导入,可视化和映射信号和总线数据到root Inports,请使用Root Inport Mapper工具。
Open the Root Inport Mapper Tool and select the mapping mode.
创建Signal Data for Root Inport Mapping
使用特定指南和约定创建root Inport映射的数据。
View and inspect signal data before mapping the data.
预览输入信号或总线数据Signal Previewwindow.
通过选择地图模式和选项并选择数据来将信号数据映射到根输入端口。解释映射结果。
Import Signal Data for Root Inport Mapping
用于root Inport映射的导入信号和总线数据。您还可以从中导入测试向量金宝app®设计Verifier™环境。
如果您不想在Root Inpert Mapper工具中使用现有的地图模式,请创建自定义映射模式。
使用Root Inpert Mapper工具中的方案工作。创建和保存方案,并加载以前保存的方案。
Generate MATLAB Scripts for Simulation with Scenarios
将场景与模型相关联后,生成MATLAB®脚本执行批处理仿真。
Other Signal Loading Techniques
Load Input Data for a Bus Using In Bus Element Blocks
Load input data for a bus using In Bus Element blocks.
Load Data Using the From Workspace Block
使用来自工作区块的负载信号数据。
Load Data Using the From File Block
使用来自文件块的负载信号数据。
Load big data as simulation input.
Stream Data from a MAT-File as Input for a Parallel Simulation
Stream input data for parallel simulations from a MAT-file.
Load Data with Interchangeable Scenarios
采用Signal Editorblock to work with interchangeable scenarios.