How can I determine which "Goto" block corresponds to a particular "From" block using command line functionality in Simulink?
24 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 26 May 2021
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
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')
0 Comments
More Answers (0)
See Also
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!