主要内容

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

Notes

在报告中插入来自 Simulink 模型或 Stateflow 图的注释

自 R2025a 起

描述

此组件插入 Simulink® 模型和 Stateflow® 图注释。有关模型注释继承的详细信息,请参阅 Write In-Model Documentation Using Notes

选项

添加从父级系统继承的注释:插入内容源自指定源的祖先的注释。

是否在报告中插入内容?

是的,文字。

rptgen_sl.csl_notes

提示

  • Logical If 组件内使用 Notes 组件,并将 测试表达式 参数设置为以下值之一:

    • 对于 Simulink 模型:slreportgen.utils.hasUniqueModelNotes(RptgenSF.getReportedSystem())

    • 对于 Stateflow 图:slreportgen.utils.hasUniqueModelNotes(RptgenSF.getReportedChart())

此图像显示了报告资源管理器设置的片段,该设置会查找模型注释,如果找到,则创建一个包含这些注释的新报告部分。

Section of Report Explorer Outline pane showing if component with the code to check for unique model notes.

版本历史记录

在 R2025a 中推出