Clear Filters
Clear Filters

Supressing code generation of a Simulink model

1 view (last 30 days)
I have a huge code in a EMF block, taking a lot of time compliling it, everytime I make a change anywhere else in the Simulink model. So I referenced this huge EMF block and Simulink does not compile the huge EMF block anymore, when I make a change anywhere in the model. BUT when I transfer the whole model (whole folder with all the slprj and mex files in it) to another file location, or to another computer, it starts compiling everything again. So is there a possibility to ultimately supress the whole compilation process for the Simulink model, after I´ve run it once? Thanks

Answers (1)

Fangjun Jiang
Fangjun Jiang on 15 Sep 2011
So the Model Referencing works out pretty well. There is a way to avoid re-compiling if that is the only thing you care about and you are willing to sacrifice others. Search for "Protecting Referenced Models" in the document. Supposedly you can protect the model and give it to anyone to use. There are requirements and limitations. If you are okay with that, follow the link for "Packaging a Protected Model".

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!