主要内容

isBreakpointDataInterface

确定对象是一个coder.descriptor.BreakpointDataInterface对象

自从R2020a

语法

breakpointTableDataInterface = isBreakpointDataInterface (parameterObj)

描述

breakpointTableDataInterface= isBreakpointDataInterface (parameterObj)返回一个逻辑值指示是否一个对象coder.descriptor.BreakpointDataInterface对象或不是。

输入参数

全部展开

coder.descriptor.BreakpointDataInterface对象代表一个断点设置在模型中。

数据类型:字符串

输出参数

全部展开

逻辑值指示对象是否coder.descriptor.BreakpointDataInterface

数据类型:逻辑

例子

全部展开

这个例子展示了如何确定一个对象是否coder.descriptor.BreakpointDataInterface对象

建立一个模型

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

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

返回查找表的属性参数

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

codeDescObj = coder.getCodeDescriptor (“ASAP2Demo”);

返回查找表的属性参数。

params = getDataInterfaces (codeDescObj,“参数”);

参数个数变量的数组coder.descriptor.DataInterfacecoder.descriptor.LookupTableDataInterface对象。

获得附加断点设置的细节模型的查找表块通过访问第一个数组中的位置。

parameterObj = params (6) .Breakpoints (1);

确定中存储的对象parameterObj变量是一个coder.descriptor.BreakpointDataInterface对象。

breakpointDataInterface = isBreakpointDataInterface (parameterObj)
breakpointDataInterface =逻辑1

代码生成器返回一个逻辑值1如果parameterObj是一个coder.descriptor.BreakpointDataInterface对象。否则,代码生成器返回一个逻辑值0

版本历史

介绍了R2020a