Clear Filters
Clear Filters

When model is loaded how does old Variant Model blocks convert to a subsystem variant with model blocks as choices?

22 views (last 30 days)
When Model Variant has two choices lets say
Model Block1 (Choice1) has inports { 'In1', 'In2', 'In3'} , let say this choice is selected
Model Block2 (Choice2) has inports { 'my_In1', 'my_In2', 'my_In3'}
How will this Model Variant convert to Variant Subsystem with model blocks as choices?

Answers (1)

Rajesh Bandreddi
Rajesh Bandreddi on 25 May 2024 at 1:59
When the model block choices have inconsistent ports the Variant Model Block will be converted to Variant Subsystem and the inconsistent choice model will be wrapped in a Subsystem to match the choice1 port names. So in the example sited for choice2 a wrapper subsystem is added with portnames {'In1', 'In2', 'In3'} connecting to {'my_In1', 'my_In2', 'my_In3'} so the Variant Subsystem behavior matches with Variant Model block.


Find more on Component-Based Modeling 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!