Generate Code for single model reference in other parent model

2 visualizaciones (últimos 30 días)
I am trying to generate code for one of the simulink model referenced in diffrent model(Parent model). When i use command rtwbuild (Parent model) it starts generating code for all referenced models. How can i generate code only for intended referenced model without going for individual code generation of that model?
Thanks in advance !
  2 comentarios
Fangjun Jiang
Fangjun Jiang el 23 de Nov. de 2020
did you try rtwbuild(Subsystem) where Subsystem is the full path of the Model block in your parent model?
Darshan Gade
Darshan Gade el 26 de Nov. de 2020
Yes i did that but somehow it says input argument error.

Iniciar sesión para comentar.

Respuesta aceptada

Chaitanya Mallela
Chaitanya Mallela el 26 de Nov. de 2020
'slbuild' function accepts model name, normal subsystem path and handle to model and subsystem. Here reference subsystem cannot be taken as valid input argument. To make rtwbuild work for reference subsystem, open it as a top model (clicking bottom left icon of the block) and specify the corresponding path.

Más respuestas (0)

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by