How to reduce building time in Virtual-vehicle composer
4 views (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Mike Sasena
on 30 Sep 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 Comments
Mike Sasena
on 1 Oct 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.
More Answers (0)
See Also
Categories
Find more on System Composer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!