Main Content

Notes

Insert notes from Simulink model or Stateflow diagram in report

Since R2025a

Description

This component inserts Simulink® model and Stateflow® diagram notes. See Write In-Model Documentation Using Notes for more information on model note inheritance.

Options

Add notes inherited from parent systems: Inserts notes whose content originates from the ancestors of the specified source.

Insert Anything into Report?

Yes, text.

Class

rptgen_sl.csl_notes

Tips

  • Use the Notes component inside the Logical If component, and set the Test expression parameter to one of these values:

    • For a Simulink model: slreportgen.utils.hasUniqueModelNotes(RptgenSF.getReportedSystem())

    • For a Stateflow diagram: slreportgen.utils.hasUniqueModelNotes(RptgenSF.getReportedChart())

This image shows a snippet of a Report Explorer setup that looks for model notes and if found, creates a new report section containing the notes.

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

Version History

Introduced in R2025a