Custom Build Process With Predefined Model Graphs

조회 수: 17 (최근 30일)
Taylor
Taylor 2025년 11월 22일
댓글: Ayush 2025년 12월 9일
I have a predefined model structure with well defined dependencies. Is there a way I can can manually build my model tree one model at a time without performing a dfs of the entire modelling tree for changes?
I'm generatig code from a relatively large system (200+ model references) which may be 3-4 layers deep. I'm finding that every model rebuild takes 30+ minutes even with parallel builds turned on despite only one model within the build tree changing. I suspect the cause of these slow builds is Simulink needs to first perform a depth first search of the entire model and recalculate the structural checksum for each model in the tree before rebuilding the individual changed models.
My thought is if I use a predefined model tree (possibly integrated into bazel), I can avoid the need to rebuild/check so many models for changes. As best I can tell, slbuild allows you to rebuild a single reference model, but if that reference model consists of other reference models, a dfs is performed and the complete tree is rebuilt.
  댓글 수: 2
Walter Roberson
Walter Roberson 2025년 11월 22일
I would not expect a depth-first search of the entire model to take more than a relatively small number of seconds.
Ayush
Ayush 2025년 12월 9일
Hi,
'slbuild' can be used to build a specified model. However, Simulink will still check all referenced models in its hierarchy, and if any dependencies have changed, they may also be rebuilt automatically.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by