Main Content

本页采用了机器翻译。点击此处可查看最新英文版本。

getDefaultSummaryProperties

获取查找器结果类的默认摘要表属性列表

自 R2022a 起

    说明

    propList = getDefaultSummaryProperties(resultObject) 返回查找器结果类 resultObject 的默认摘要表属性。

    示例

    propList = getDefaultSummaryProperties(resultObject,TypeSpecificProperties=value) 表示是否包含特定于类型的属性。

    示例

    全部折叠

    查找查找器结果对象的摘要表报告器中包含的默认属性。

    导入所需的命名空间以避免使用长且完全限定的类名称。

    import slreportgen.finder.*

    加载模型并在模型中搜索信号..对于每个结果对象,打印相关的默认摘要表属性。

    model_name = "slrgex_vdp";
    load_system(model_name)
    
    
    finder = SignalFinder(model_name);
    results = find(finder);
    
    props = getDefaultSummaryProperties(results(1))
    props = 1x5 string
        "Name"    "Description"    "Source"    "NonvirtualDestination"    "DataType"
    
    

    输入参数

    全部折叠

    用于列出默认摘要表属性的查找器结果对象,指定为查找器结果类的对象。

    是否返回查找器结果对象的类型特定属性,指定为 truefalse

    输出参量

    全部折叠

    默认摘要表属性列表,以字符串数组形式返回。结果类的默认属性是:

    查找器结果类TypeSpecificPropertiestrue 时的属性列表属性列表 当 TypeSpecificProperties 设置为 true
    slreportgen.finder.BlockResult
    • Name

    • Parent

    • 查找器结果对象所代表的模块的块对话框属性

    • Name

    • Parent

    slreportgen.finder.DataDictionaryResult此类不具有任何类型特定的属性。
    • Name

    • DataSources

    slreportgen.finder.DiagramElementResult

    默认属性取决于查找器结果对象的类型:

    • Name

    • Type

    slreportgen.finder.DiagramResult

    默认属性取决于查找器结果对象的类型:

    • Name

    • Description

    slreportgen.finder.ModelVariableResult此类不具有任何类型特定的属性。
    • Name

    • Class

    • Source

    • SourceType

    slreportgen.finder.SignalResult此类不具有任何类型特定的属性。
    • Name

    • Description

    • Source

    • NonvirtualDestination

    • DataType

    slreportgen.finder.FunctionReferenceResult此类不具有任何类型特定的属性。
    • Name

    • Calling blocks

    • Calling expressions

    版本历史记录

    在 R2022a 中推出