MATLAB Answers

Code generation for subsystem only

24 views (last 30 days)
Milan
Milan on 16 May 2013
I am trying to generate code for only a subsystem of a model, while ignoring the rest. Is there a way to set embedded coder to only generate code for a subsystem?
Alternately, is it possible to set a subsystem such that code cannot be generated for it?

  0 Comments

Sign in to comment.

Answers (1)

Valmir Sadiku
Valmir Sadiku on 16 May 2013
right click on the subsystem then go to 'C/C++ Code' and select 'Build This Subsystem'

  7 Comments

Show 4 older comments
Milan
Milan on 27 May 2013
Hi kaustubha
How can we comment the subsystem.can you tell me the process in brief.
Milan
Milan on 27 May 2013
Hi kaustubha TO be clear i am using simcoupler ,i dont want to generate code for it .i am using environment control block but it act switch in input side can i have same option at output terminal .
Kaustubha Govind
Kaustubha Govind on 29 May 2013
Milan: Please see the video in the link from my previous comment for a demo on commenting out a block in R2012b and later releases. Can you explain what you mean by "it act switch in input side can i have same option at output terminal".

Sign in to comment.

Sign in to answer this question.