How to compile partial models in Simulink Real-Time (XPC Target)

조회 수: 3 (최근 30일)
Stefano
Stefano 2023년 1월 30일
편집: HimeshNayak 2023년 2월 28일
Is it possible to compile partial models in Simulink Real-Time to speed up the build process?
For instance, I am only replacing one block and I don't want the full Simulink model to compile from scratch.
If yes, where to I set this option?
Thank you

답변 (1개)

HimeshNayak
HimeshNayak 2023년 2월 28일
편집: HimeshNayak 2023년 2월 28일
Hi Stefano,
I understand you want to run a sub model (or a partial model) in Simulink and not the complete model. This can be achieved by using an Atomic Subsystem which is further converted into a Model.
Follow the following steps to convert a part of the model to a new model.
  1. To convert the desired part of the model into a Subsystem, select the part and select “Atomic Subsystem” from the “Multiple” menu tab.
2. Select the “Subsystem Block” and convert it to a model by clicking on the option “Model Block”, in “Covert” option of the “Subsystem” menu tab
3.“Model Reference Conversion Advisor” dialog box will pop up. Make any desired changes and then click on convert.
Now, you will have a separate model which you can run, without affecting the rest of the model.
For further information about converting Subsystem to a Model visit the following link: https://in.mathworks.com/help/simulink/ug/convert-a-subsystem-to-a-referenced-model-1.html
Regards,
Himesh

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by