MATLAB Answers

0

Is exist any way for generate include and source files from Simulink model in different folders?

Asked by Marat Shchuchinsky on 26 Aug 2019
Latest activity Answered by Archit Dhanani on 26 Aug 2019
Dear collegaus! Is exist any way for generate include and source files from Simulink model in different folders? For example: generating include files to 'MyProj/include' and source files to 'MyProj/src'.

  0 Comments

Sign in to comment.

1 Answer

Answer by Archit Dhanani on 26 Aug 2019

Hi Marat,
Unfortunately, there is no direct way of doing this. You will have to write a custom TLC file to control this. Here is one of the earlier post I found asking the same question:
You could use the function LibSetSourceFileOutputDirectory to specify the path for the source code.
Here are some of the other functions you use to customize the code:
Let us know if you have any other questions.

  0 Comments

Sign in to comment.