Philipp
2010-01-13 12:04:03 UTC
Hi,
I need some help with the following problem:
I want to generate a list of all subsystems in my Simulink model.
I think I know how to find all subsystem blocks:
subsys = find_system( sys, 'LookUnderMasks','all', 'FollowLinks', FollowLinks, ...
'blocktype','SubSystem');
but this still includes all simscape blocks, which have the block property "subsystem" but are not subsystems, e.g. a current sensor.
So I am looking for a way to identifiy Simscape blocks programatically and remove them from the subsys list.
I need some help with the following problem:
I want to generate a list of all subsystems in my Simulink model.
I think I know how to find all subsystem blocks:
subsys = find_system( sys, 'LookUnderMasks','all', 'FollowLinks', FollowLinks, ...
'blocktype','SubSystem');
but this still includes all simscape blocks, which have the block property "subsystem" but are not subsystems, e.g. a current sensor.
So I am looking for a way to identifiy Simscape blocks programatically and remove them from the subsys list.