MATLAB: When using Variant Models is it possible to select a model at run time, instead of at compile

Embedded Coderreal time workshoprtwruntimesimulinkvariantvariant modelvariant subsystem

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,

Best Answer

No, Variant Subsystems cannot be selected at run-time. You need to use Conditional Subsystems like Triggered/Enabled Subsystems in that situation.