Disable code generation while runnign the simulation of a model

조회 수: 12 (최근 30일)
Sandeep
Sandeep 2014년 11월 28일
댓글: Sandeep 2014년 11월 28일
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.

답변 (1개)

Orion
Orion 2014년 11월 28일
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.
  댓글 수: 1
Sandeep
Sandeep 2014년 11월 28일
Agreed, on normal mode it wont generate any code. But my requirement is to run in SIL mode but not to generate any code. I want to use the previously generated code hence. This will also save considerably lot of time when I run for 98 models.

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by