Disable code generation while runnign the simulation of a model
Show older comments
I need to disable the code generation while running the simulation. I am using the below code with the parameters
set_param(TestModelName, 'SimulationMode', 'Software-in-the-Loop (SIL)');
set_param(TestModelName, 'GenCodeOnly', 'off');
sim(TestModelName)
But even then the code is generated. Any idea what else I can do to not generate the code.
Answers (1)
Orion
on 28 Nov 2014
0 votes
If you want to simulate in SIL mode, SImulink will generate some code.
if you don't want any code generation, you need to set 'SimulationMode' to normal.
Note that if there are some stateflows in your model, some code will still be generating.
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!