Trying to find if configurable subsystem present in given model or not by using find_system() API, but it is not giving any value even the model contain ConfigurableSubsystem.
Show older comments
My model contains Configurable Subsytem in it and I can see the Configurable Subsystem block present in the model through UI. When I tried to find all the confugurable blocks through m-script it is not giving an empty output.
I used the following ways to find and all gave me an empty output.
- find_system('modelName', 'BlockType', 'ConfigurableSubsystem')
- find_system('modelName', 'BlockType', 'ConfigurableSubsystem', 'FollowLinks', 'on', 'LookUnderMasks', 'all')
Even tried to find the type of the block which is showing as Configurable Subsystem in UI by getting the path with the following code
blkpath = 'EMachine/E-Machine/IsConst';
type = get_param(blkpath, 'BlockType');
- The above code is giving me the type of block is Subsystem, but in UI it is ConfigurableSubsystem.
How to get all the blockpaths of all Configurable Subsystem and convert them to Variant Subsystems through scripts as I'm not able to find the Configurable Subsystem blocks?
Tried using upgradeAdvisor on the model to convertand it is working but it is increasing the build time alot and it is not feasible right now.
Accepted Answer
More Answers (0)
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!