How can I determine which "Goto" block corresponds to a particular "From" block using command line functionality in Simulink?

24 views (last 30 days)
I am trying to query a "From" block to determine the corresponding "Goto" block. This information is in the "From" Simulink block dialog under the "Goto Source" dialog parameter. However I am not able to get access to this dialog parameter from the command line.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 May 2021
Edited: MathWorks Support Team on 26 May 2021
Use the following Block properties to query the requested information:
1. for From Blocks:
get_param(<fromBlockHandle>,'GotoBlock')
This is also documented here:
2. for Goto Blocks
get_param(<gotoBlockHandle>,'FromBlocks')

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!