How to get a list of signals and blocks used in a particular Simulink diagram?
9 次查看(过去 30 天)
显示 更早的评论
I have a Simulink diagram. Are there any functions that would output a list of blocks used in that diagram with their parameters? Also, are there any functions that would output a list of signals used in the diagram with their names together with information to what blocks those signals are connected to?
All of this is needed so that I could write a script that translates my Simulink diagram to a textual representation (i.e. .txt file), which is later used as an input to an automated theorem prover.
0 个评论
采纳的回答
Sreeram Mohan
2014-11-20
Hi Kestutis,
find_system is the command that is easier way(though slow if the models are large) that can come in handy.
for instance to get the list of blocks you could try this on a simple model like : >> vdp >> find_system('vdp', 'Type', 'Block')
This should return a cell array of all the blocks.
Like wise you could go through the help for find_system to discover more options.
Hope this helps !!!
--sreeram
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!