How to reduce building time in Virtual-vehicle composer
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Mike Sasena
2024-9-30
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 个评论
Mike Sasena
2024-10-1
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!