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

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,

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 10 月 1 日

1 投票

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

2 件のコメント

Adam
Adam 2013 年 10 月 2 日
I accept your answer but I don't like it. Maybe in the furture Mathworks will allow for run-time changes with Variant models.
Thanks
Kaustubha Govind
Kaustubha Govind 2013 年 10 月 3 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by