主要内容

coder.descriptor.BreakpointDataInterface类

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

返回信息可调断点集的数据查找表可调参数

自从R2020a

描述

coder.descriptor.BreakpointDataInterface对象描述了断点设置的各种属性数据的这些查找表块可调参数生成的代码:

  • 一维查找表

  • 二维查找表

  • 一天的查找表

  • 插值使用Prelookup

  • 直接查找表(一天)

  • 正弦

  • 余弦

创建

参数个数= getDataInterfaces (codeDescObj,dataInterfaceName)创建一个coder.descriptor.BreakpointDataInterface对象查找表的每个维度。的codeDescObj对象是coder.codedescriptor.CodeDescriptor通过使用对象创建模型getCodeDescriptor函数。

coder.descriptor.LookupTableDataInterfacecoder.descriptor.BreakpointDataInterface如果这些条件是真的创建对象:

  • 查找表的数据是可调的。

  • 其中一个条件是正确的:

    • 断点集数据是可调的。

    • nontunable断点设置数据块不使用金宝appSimulink.LookupTable对象。

    • 块使用金宝appSimulink.LookupTable对象。

输入参数

全部展开

指定参数数据接口类型。

例子:参数

属性

全部展开

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

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

相关的可调参数的名称的断点。

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

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

属性:

GetAccess
公共
SetAccess
公共

找到表中的输入值,操作使用相对断点设置数据点。

属性:

GetAccess
公共
SetAccess
公共

选项来生成代码,使可调谐性的有效尺寸表,指定为01

属性:

GetAccess
公共
SetAccess
公共

数据类型:逻辑

断点集的描述数据等间距的或non-evenly间隔的。的coder.descriptor.FixAxisMetadata创建对象只有在查找表的数据是可调,断点集数据不是可调。

属性:

GetAccess
公共
SetAccess
公共

方法

全部展开

例子

全部折叠

这个示例展示了如何检索断点数据集信息。

建立一个模型

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

open_system (“ASAP2Demo”);rtwbuild (“ASAP2Demo”);
# # #开始串行代码生成建立模型参考。# # #成功更新了模型参考代码生成目标:ASAP2DemoModelRef # # #开始构建过程:ASAP2Demo # # #成功完成构建过程:ASAP2Demo构建代码生成目标构建:总结模型重建行动的原因= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ASAP2DemoModelRef代码生成和编译。ASAP2DemoModelRef。c并不存在。高级模型目标构建:模型重建行动的原因= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ASAP2Demo代码生成和编译。代码生成信息文件不存在。2的2模型建立(0模型已经更新)构建持续时间:0 h 0米32.148秒

返回查找表的属性参数

创建一个描述符为模型对象代码。

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序列)

的断点属性coder.descriptor.LookupTableDataInterface持有一个向量的对象coder.descriptor.BreakpointDataInterface对象。获得附加断点设置的细节模型的查找表块通过访问第一个数组中的位置。

参数(6).Breakpoints (1)
ans = BreakpointDataInterface属性:类型:[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]单位:“范围:[1 x0 coder.descriptor.Range] OperatingPoint: [1 x1 coder.descriptor.DataInterface] SupportTunableSize: 0 FixAxisMetadata: [1 x0 co金宝appder.descriptor.FixAxisMetadata]

版本历史

介绍了R2020a