Compile only referenced model and not the entire project

조회 수: 7 (최근 30일)
Federico Ibach
Federico Ibach 2023년 1월 4일
댓글: Federico Ibach 2023년 3월 1일
Hello,
I recently updated my Matlab/Simulink from R2017b to R2022a.
I work with a Simulink "Main-Model" containing a large number of referenced models.
In R2017b when I clicked on a referenced model it automatically opened as Top Model and I was able to compile it and debug it stand-alone.
Now with R2022a the referenced model is opened in its hierarchy and once I want to compile it I need to wait that the complete "Main-Model" is compiled.
Is there a way to automatically execute the command "Open as Top Model" once I double click on a referenced model? Or in alternative, is there a way to only compile one referenced model if it is not opened as Top Model?
Thank you

채택된 답변

Ganapathi Subramanian
Ganapathi Subramanian 2023년 3월 1일
It is my understanding that you are working on a Simulink model that contains many referenced model and have some uncertainty in the working with the updated version of MATLAB.
To open a referenced model as a top model, click the Open As Top Model badge on the Model block.
The command to compile the model without opening it as top model is
modelname([],[],[],'compile')
  댓글 수: 1
Federico Ibach
Federico Ibach 2023년 3월 1일
Oh nice! I never noticed the badge on the referenced model. Perfect, this answer my questions.
Thank you!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by