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

3 views (last 30 days)
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

Answers (1)

HimeshNayak
HimeshNayak on 28 Feb 2023
Edited: HimeshNayak on 28 Feb 2023
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

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!