MATLAB Answers

some header files which are actually included in code were not generated in code generation process of simulink.

3 views (last 30 days)
Sriniketh Konduri
Sriniketh Konduri on 25 Mar 2019
Answered: Tohru Kikawada on 29 Apr 2020
I have generated c++ code for inverse kinematics for a six dof arm. The generated code includes header files like "ctimefun.h", "nesl_rtw.h" which are not actually generated in the code generation. Can any one help what are these header files?

  0 Comments

Sign in to comment.

Answers (2)

Harshita Gupta
Harshita Gupta on 28 Mar 2019
Hello ,
Try restoring the search path to default one :
>> rehash toolbox
>> rehash toolboxcache
>> sl_refresh_customizations
sl_refresh_customizations" refreshes the Simulink menu and the dialog customization.
It probably will help.

  0 Comments

Sign in to comment.


Tohru Kikawada
Tohru Kikawada on 29 Apr 2020
You may need to call packNGo to collect the referred files from your code. Here is an example for this and the files can be found in generated myfunc_archive.zip.
codegen -config cfg myfunc -args {arg} -launchreport
load(fullfile('codegen','lib','myfunc','buildInfo'));
packNGo(buildInfo,{'packType', 'flat', ...
'fileName','myfunc_archive'});

  0 Comments

Sign in to comment.