How to reduce building time in Virtual-vehicle composer

6 visualizaciones (últimos 30 días)
Junghyo
Junghyo el 29 de Sept. de 2024
Comentada: Mike Sasena el 1 de Oct. de 2024
hello. I'm using Matlab 23b, and I'm using virtual vehicle composer, and I feel like changing just one constant for performance verification (for example, VCU internal thresholds) requires a full rebuild and takes a lot of time. If I run the simulation again with no changes, it starts almost immediately. Is there any way to reduce this rebuild time?

Respuesta aceptada

Mike Sasena
Mike Sasena el 30 de Sept. de 2024
Hi Junghyo,
Thanks for your question. Can you clarify what you specifically you're changing and what is rebuilding? Are you changing parameter values in the VVC app, or directly in the Simulink model generated by the app? When you say "rebuilding", do you mean you click the "Build" button in the app and the updated model is generated, or you click the "Run" button in Simulink and the model needs to be recompiled? These are different workflows that trigger different processes to run.
When it comes to changing parameter values in the app, we've made some important improvements in R2024b. Once you build the model, you can make changes to parameters in the app without having to regenerate the model. Instead, it just pushes any modified parameter values to the Data Dictionaries that store their values. This avoids the whole rebuild process, saving a lot of time. If you're able to upgrade to the latest MATLAB release, this could solve your problem.
As for how to reduce build times in Simulink in general, there are a few articles in our documentation you could read (e.g., Assemble Large-Scale Model Components and Perform Large-Scale Simulation). You can find more information there about things like enabling parallel builds to speed up model compilation time.
Hope that helps,
Mike
  2 comentarios
Junghyo
Junghyo el 1 de Oct. de 2024
I'm making changes to the controller in an existing Simulink model by simply modifying the values in constant blocks and pressing the run button. According to the documentation, there is already a cache file, but it's still taking a long time to run...
Mike Sasena
Mike Sasena el 1 de Oct. de 2024
Depending on the settings of the model and what you're changing, parameter modifications can trigger a rebuild. There are things you can do such as setting parameters as "tunable", but it's very model specific. If you need further assistance, I'd recommend reaching out to our Tech Support team. They can look at your model and help you understand how to avoid rebuilds where possible.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by