Insert a link to subsytem block in annotation

3 views (last 30 days)
Jack Daniels
Jack Daniels on 22 Jan 2025
Edited: Jianfei on 30 Jan 2025
I'd like to insert a link into annotation text for another block with the same simulation simulink model, I'd reference to link (point) to it.
Is it possible to referenace for block/subsystem from annotation text in simulink, if so - how?

Answers (1)

Jianfei
Jianfei on 23 Jan 2025
Edited: Jianfei on 30 Jan 2025
You can simply use an empty subsystem and create a mask to display your annotations. Then, set up an OpenFcn callback. Using hilite_system, you can link it to another block. When you double-click the subsystem, it will navigate you to the linked block.

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!