I want to control the variant subsystem using matlab commands/programming

1 回表示 (過去 30 日間)
Mayur  Patne
Mayur Patne 2019 年 12 月 6 日
回答済み: Nicolas B. 2019 年 12 月 6 日
I have build a variant subsytem and its working fine with label control mode and mask. The same system I have to run and control using matlab programming.
CODE:
i=1;
for I= 250
for T_amb = 25
for T_init = 25
T = 5
open_system('Model.slx')
sim('Model.slx')
i=i+1;
end
end
end
T=5 here is my condition given for variant susbsystem when expression mode is chosen. And want to run for T=5 variant but the model is always running for other variant option and not considering T=5 condition.

回答 (1 件)

Nicolas B.
Nicolas B. 2019 年 12 月 6 日
You should follow the configure variant controls section of this page:

カテゴリ

Help Center および File ExchangeVariant Hierarchical Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by