coder.descriptor.LookupTableDataInterface类
包:coder.descriptor
超类:coder.descriptor.DataInterface
描述
的coder.descriptor.LookupTableDataInterface
对象描述各种属性对这些查找表生成的代码块,可调参数:
一维查找表
二维查找表
一天的查找表
插值使用Prelookup
直接查找表(一天)
正弦
余弦
创建
创建一个参数个数
= getDataInterfaces (codeDescObj
,dataInterfaceName
)coder.descriptor.LookupTableDataInterface
如果模型对象有一个查找表块,有可调参数。的codeDescObj
对象是coder.codedescriptor.CodeDescriptor
通过使用对象创建模型getCodeDescriptor
函数。
输入参数
dataInterfaceName
- - - - - -数据接口的名称
参数
指定参数
数据接口类型。
例子:参数
属性
类型
- - - - - -类型的数据
coder.descriptor.types
对象
等与数据相关联的数据类型整数
,双
,矩阵
和它的属性。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
SID
- - - - - -金宝app®标识符
特征向量
动态仿真金宝app模块标识符(SID)是一个独特的数字模型,模型中的分配。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
GraphicalName
- - - - - -表数据的可调参数的名称
特征向量
的名称相关联的表数据的可调参数。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
VariantInfo
- - - - - -变异的条件模型
coder.descriptor.VariantInfo
对象
条件变体模型与数据交互接口。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
实现
- - - - - -实现数据的描述
coder.descriptor.DataImplementation
对象
描述数据在生成的代码是如何实现的。这个属性描述数据类型和大小等特征。它还描述了如何访问数据或代码中声明。属性描述如果数据声明为成员变量或结构。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
时机
- - - - - -在运行时环境中数据访问速度
coder.descriptor.TimingInterface
对象
访问数据的速率在一个运行时环境。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
单位
- - - - - -物理单元属性的信号
特征向量
物理单位指定为属性在信号模型组件的边界。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
范围
- - - - - -范围的输出值
coder.descriptor.Range
对象
的范围块输出信号的有效值。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
金宝appSupportTunableSize
- - - - - -表大小的可调谐性
1
(默认)|0
值表示是否启用表的可调谐性的有效尺寸表,指定为0
或1
。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
数据类型:逻辑
BreakpointSpecification
- - - - - -的断点集信息来源ASAP2规范
“显式值”
(默认)|“参考”
|“即使间距”
断点集的信息来源,指定为“显式值”
(默认),“即使间距”
,或“参考”
。断点规范映射:
明确的价值观
- - - - - -STD_AXIS
参考
- - - - - -COM_AXIS
甚至间距
- - - - - -FIX_AXIS
ASAP2查找表的更多信息,请参阅定义ASAP2查找表的信息。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
数据类型:字符
输出
- - - - - -数据接口的输出查找表
coder.descriptor.DataInterface
对象
查找表操作的返回值。
属性:
GetAccess |
公共
|
SetAccess |
公共
|
断点
- - - - - -断点集数据
coder.descriptor.BreakpointDataInterface
对象
向量的coder.descriptor.BreakpointDataInterface
对象用于查找表的块。这些对象包含断点集数据。
属性:
GetAccess |
公共
|
方法
公共方法
isLookupTableDataInterface |
确定对象是一个coder.descriptor.LookupTableDataInterface 对象 |
getAllParameters |
返回所有相关coder.descriptor.LookupTableDataInterface 和coder.descriptor.BreakpointDataInterface 对象 |
例子
获得查找表块信息
这个示例展示了如何检索查找表块信息。
建立一个模型
开放和建立一个模型,该模型包含查找表块。
open_system (“ASAP2Demo”);rtwbuild (“ASAP2Demo”);
# # #开始串行代码生成建立模型参考。# # #成功更新了模型参考代码生成目标:ASAP2DemoModelRef # # #开始构建过程:ASAP2Demo # # #成功完成构建过程:ASAP2Demo构建代码生成目标构建:总结模型重建行动的原因= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ASAP2DemoModelRef代码生成和编译。ASAP2DemoModelRef。c并不存在。高级模型目标构建:模型重建行动的原因= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ASAP2Demo代码生成和编译。代码生成信息文件不存在。2的2模型建立(0模型已经更新)构建持续时间:0 h 0米32.202秒
返回查找表的属性参数
创建一个描述符为模型对象代码。
codeDescObj = coder.getCodeDescriptor (“ASAP2Demo”);
返回查找表的属性参数。
params = getDataInterfaces (codeDescObj,“参数”);
的参数个数
变量的数组coder.descriptor.DataInterface
和coder.descriptor.LookupTableDataInterface
对象。该模型ASAP2Demo
包含三个查找表块。只有两个可调断点集数据。代码生成器创建相应只有两个coder.descriptor.LookupTableDataInterface
对象。
获得的细节Standard_Axis块通过访问数组中的第六的位置。
参数(6)
ans = LookupTableDataInterface属性:类型:[1 x1 coder.descriptor.types.Type]席德:“ASAP2Demo: 12”GraphicalName:“tabledata”VariantInfo: [1 x0 coder.descriptor.VariantInfo]实现:[1 x1 coder.descriptor.DataImplementation]时间:[1 x0 coder.descriptor.TimingInterface]单元:rpm的范围:[1 x1 coder.descriptor.Range] SupportTunableSize: 0 BreakpointSpecification:显式金宝app值的输出:[1 x1 coder.descriptor.DataInterface]断点:[1 x2 coder.descriptor.BreakpointDataInterface序列)
版本历史
介绍了R2020a
MATLAB命令
你点击一个链接对应MATLAB命令:
运行该命令通过输入MATLAB命令窗口。Web浏览器不支持MATLAB命令。金宝app
你也可以从下面的列表中选择一个网站:
表现最好的网站怎么走吗
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。