When using Variant Models is it possible to select a model at run time, instead of at compile?
1 view (last 30 days)
Show older comments
Looking for a way to easily compile multiple models and then pick which model to use during runtime. Similar to how the Variant Model block allows you to select a different model at compile time.
Thanks,
0 Comments
Accepted Answer
Kaustubha Govind
on 1 Oct 2013
No, Variant Subsystems cannot be selected at run-time. You need to use Conditional Subsystems like Triggered/Enabled Subsystems in that situation.
2 Comments
Kaustubha Govind
on 3 Oct 2013
Adam: Could you explain why Conditional Subsystems don't work for your situation? I think Variant Subsystems were specifically designed with compile-time considerations in mind - Conditional Subsystems have existed in Simulink for a long time.
More Answers (0)
See Also
Categories
Find more on Component-Based Modeling 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!