Build time of my project is increasing after using "UpgradeAdvisor" to convert Configurable Subsystems to Variant Subsystems.

2 visualizzazioni (ultimi 30 giorni)
The project build time increasing after using upgrade advisor to convert Configurable Subsystem to Variant Subsystem. Is there any way to optimize the time to convert Configurable Subsystem to Variant Subsystem?

Risposta accettata

Aabha
Aabha il 6 Mag 2025
Hi @Veera,
The ‘Variant Subsystem’ block offers more advantages than the previously used ‘Configurable Subsystem’ block. It allows users to instantiate the Variant Subsystem block, eliminating the need for creating a separate library. It also allows to control variant blocks through label, expression, and simulation – code generation switching modes. It also includes both active and inactive choices in the generated code. Due to these added capabilities, the complexity of the ‘Variant Subsystem’ block is more than the ‘Configurable Subsystem’. Hence, it is expected behaviour that the build time of the model increases whenever you switch from a ‘Configurable’ to a ‘Variable’ subsystem.
However, you can explore a few optimization options to reduce the build time. You can use the following command:
slbuild
This command provides an incremental model build, which only rebuilds a model or sub models that have changed since the most recent model build. Please refer to the following documentation to understand more about ‘slbuild’:
Additionally, please refer to the following documentation link to understand more about the ways in which code generation speed can be improved:
I hope this helps.

Più risposte (0)

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by