主要内容

coder.descriptor.LookupTableDataInterface类

包:coder.descriptor
超类:coder.descriptor.DataInterface

返回的信息查找表块可调参数

自从R2020a

描述

coder.descriptor.LookupTableDataInterface对象描述各种属性对这些查找表生成的代码块,可调参数:

  • 一维查找表

  • 二维查找表

  • 一天的查找表

  • 插值使用Prelookup

  • 直接查找表(一天)

  • 正弦

  • 余弦

创建

参数个数= getDataInterfaces (codeDescObj,dataInterfaceName)创建一个coder.descriptor.LookupTableDataInterface如果模型对象有一个查找表块,有可调参数。的codeDescObj对象是coder.codedescriptor.CodeDescriptor通过使用对象创建模型getCodeDescriptor函数。

输入参数

全部展开

指定参数数据接口类型。

例子:参数

属性

全部展开

等与数据相关联的数据类型整数,,矩阵和它的属性。

属性:

GetAccess
公共
SetAccess
公共

动态仿真金宝app模块标识符(SID)是一个独特的数字模型,模型中的分配。

属性:

GetAccess
公共
SetAccess
公共

的名称相关联的表数据的可调参数。

属性:

GetAccess
公共
SetAccess
公共

条件变体模型与数据交互接口。

属性:

GetAccess
公共
SetAccess
公共

描述数据在生成的代码是如何实现的。这个属性描述数据类型和大小等特征。它还描述了如何访问数据或代码中声明。属性描述如果数据声明为成员变量或结构。

属性:

GetAccess
公共
SetAccess
公共

访问数据的速率在一个运行时环境。

属性:

GetAccess
公共
SetAccess
公共

物理单位指定为属性在信号模型组件的边界。

属性:

GetAccess
公共
SetAccess
公共

的范围块输出信号的有效值。

属性:

GetAccess
公共
SetAccess
公共

值表示是否启用表的可调谐性的有效尺寸表,指定为01

属性:

GetAccess
公共
SetAccess
公共

数据类型:逻辑

断点集的信息来源,指定为“显式值”(默认),“即使间距”,或“参考”。断点规范映射:

  • 明确的价值观- - - - - -STD_AXIS

  • 参考- - - - - -COM_AXIS

  • 甚至间距- - - - - -FIX_AXIS

ASAP2查找表的更多信息,请参阅定义ASAP2查找表的信息

属性:

GetAccess
公共
SetAccess
公共

数据类型:字符

查找表操作的返回值。

属性:

GetAccess
公共
SetAccess
公共

向量的coder.descriptor.BreakpointDataInterface对象用于查找表的块。这些对象包含断点集数据。

属性:

GetAccess
公共

方法

全部展开

例子

全部折叠

这个示例展示了如何检索查找表块信息。

建立一个模型

开放和建立一个模型,该模型包含查找表块。

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.DataInterfacecoder.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