从工作区
从工作区负载信号数据
- 图书馆:
SIMulink / Sources
Description
这从工作区Block从工作区读取信号数据,并以其输出为信号提供数据。
这block displays the expression specified in the数据范围。有关如何评估表达方式的详细信息,请参见符号分辨率。
You can specify how the data is loaded, including sample time, how to handle data for missing data points, and whether to use zero-crossing detection. For more information, see使用从工作区块加载数据。
笔记
金宝app®CODER™连接到该块的软件不会生成该块的代码SIMport under the conditions listed in环境控制器。
Specifying Workspace Data
在里面从工作区block dialog box, use the数据parameter to specify the workspace data to load. You can specify a MATLAB®表达式(例如,MATLAB工作区中变量的名称)评估以下一个选项之一:
一个
timeseries
目的一个结构
timeseries
对象一个
timetable
目的一个结构
timetable
对象有或没有时间的结构
二维矩阵
有关其他信息,请参阅使用从工作区块加载数据。
笔记
When you specifytimetable
加载的数据,每个timetable
对象只能包含一个信号的数据。
Use with Data Dictionary
When you link a model to a data dictionary, you:
Store design data, which contributes to the fundamental design of the model in the Design Data section of the dictionary. Design data includes numeric variables and
金宝appsimulink.parameter
对象that you use to set block parameter values.在基本工作区中,存储模拟输入数据,用于刺激和实验模型。通常,您将模拟输入数据作为MATLAB创建
timeseries
对象。
为了more information about storing variables, objects, and other data that a model uses, see确定在何处存储simulink模型的变量和对象金宝app。
使用一个从工作区块,将目标变量存储在字典的设计数据部分中,并设置数据parameter of the block to the name of the variable.
要访问仿真输入数据,请将目标变量存储在基本工作区中,并设置数据parameter by using a call to the
评估
功能。在电话中评估
, specify thews
论点为'根据'
so that the block seeks the variable in the base workspace instead of the data dictionary. For example, if the name of the variable ismytimeseriesObject
, 放数据to评估(“基础”,“ mytimeseriesObject')
。