slreportgen.report.DataDictionary 类
命名空间: slreportgen.report
超类: slreportgen.report.Reporter
Simulink 数据字典报告器
描述
使用 slreportgen.report.DataDictionary
类的对象来报告 Simulink® 数据字典。创建一个 DataDictionary
对象来报告特定的数据字典。或者,使用 slreportgen.finder.DataDictionaryFinder
对象查找数据字典并使用 slreportgen.finder.DataDictionaryResult
对象的 getReporter
方法返回结果的报告器。
注意
要在报告中使用 slreportgen.report.DataDictionary
报告器,您必须使用 slreportgen.report.Report
类或子类创建报告。
slreportgen.report.DataDictionary
类是 handle
类。
创建对象
描述
根据默认模板创建一个 reporter
= slreportgen.report.DataDictionaryDataDictionary
报告器对象。使用报告器属性来指定数据字典和报告选项。您必须指定要报告的数据字典。向报告中添加空的数据字典报告器对象会产生错误。
创建一个 reporter
= slreportgen.report.DataDictionary(dictionaryName
)DataDictionary
报告器对象,并将 Dictionary 属性设置为指定的数据字典。使用报告器属性来指定报告选项。
使用名称-值参量设置报告器属性。您可以按任意顺序指定多个名称-值参量。reporter
= slreportgen.report.DataDictionary(Name=Value
)
属性
方法
示例
版本历史记录
在 R2020b 中推出