How to increase performance of variant subsystems?

1 visualización (últimos 30 días)
Lucas Maiß
Lucas Maiß el 29 de Nov. de 2017
Respondida: Dinesh el 3 de Jul. de 2024
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 ?
  5 comentarios
Lucas Maiß
Lucas Maiß el 29 de Nov. de 2017
Are the commented subsystems also compiled?

Iniciar sesión para comentar.

Respuestas (1)

Dinesh
Dinesh el 3 de Jul. de 2024
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.

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by