Can I create hyperlinks for blocks in Simulink Report Generator?

9 views (last 30 days)
In the generated report using slreportgen.finder.SystemDiagramFinder, clicking on a subsystem creates a hyperlink to the corresponding section in the report.
I would like to have similar hyperlink functionality for blocks other than component blocks, such as Constant blocks.
Is there a way to enable hyperlinks for non-component blocks in the generated report?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Dec 2025 at 0:00
The hyperlink functionality is already available.
To control where the hyperlink navigates within the report, you must set the target. This is done by first obtaining the block’s object ID using the slreportgen.utils.getObjectID function and then assigning that ID to the reporter’s LinkTarget property. Once the LinkTarget is set, the hyperlink will navigate to the specified location in the report. 
We have a published example that demonstrates this behavior.
Moreover, when using our finders and reporters to report on block properties, the link target is set automatically to the corresponding block properties table in the report.

More Answers (0)

Categories

Find more on Simulink Report Generator in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!