How to increase performance of variant subsystems?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, I got a model based on variant subsystems. I got one extremely big variant subsystem, so the model crashes during compiling. When I insert needed subsystems by hand and delete the rest it works fine. So my question is, is there a methed how to increase the performance of variant subsystems, or an alternative ?
回答 (1 件)
Dinesh
2024 年 7 月 3 日
Hi Lucas.
Over the years, there have been many improvements and new features added in "Variant Subsystem". I don't think you would face any performance issue if you use the latest MATLAB release. As of version R2024a (latest release), by default, when you add "Variant Subsystem" to the Simulink canvas, the setting is in such a way that only the active choice is compiled. Inactive choices including commented subsystems are ignored and will not be compiled.
However, you can change this behavior by modifying the "Variant Activation Time" field to a value other than "update diagram" which would compile all the choices. Only this change might affect the performance, otherwise you shouldn't see any.
Here's the latest documentation link for "Variant Subsystem": https://www.mathworks.com/help/simulink/slref/variantsubsystemvariantmodelvariantassemblysubsystem.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!