MATLAB Answers

About code génération in Matlab 2014b

35 ビュー (過去 30 日間)
Marc
Marc 2014 年 10 月 17 日
コメント済み: Marc 2014 年 11 月 4 日
Hello,
When I try to generate code with our own target I've got this error message : "fatal error C1083: Cannot open include file: 'builtin_typeid_types.h': No such file or directory " I have a file in my target that use this Matlab header file "rt_logging.h". And when I took a look in this file I saw that there is indeed a reference to 'builtin_typeid_types.h' which is not present anywhere in my Matlab installation folders.
Can you help me for this issue please ?
Thanks and regards,
Mignanelli Marc

  0 件のコメント

サインイン to comment.

採用された回答

Marc
Marc 2014 年 10 月 22 日
Hello,
Thanks you for your answer, however, I don't have the access to your documentation because we don't have embedded coder license. Nevertheless, I tried to check the "Enable MAT-file logging" option (in Simulink Preferences -> Configuration Defaults -> Code generation), and whatever the option is checked or unchecked I have still the same error message which is : " C:\PROGRA~1\MATLAB\R2014b\rtw\c\src\rt_logging.h(17) : fatal error C1083: Cannot open include file: 'builtin_typeid_types.h': No such file or directory "
Do you have any other idea about this problem ?
Thank you

  3 件のコメント

Jon Boerner
Jon Boerner 2014 年 10 月 23 日
Changing the option there (in the Simulink preferences) will not actually change the option for the model. What you changed is the default options for any new models you create. To change it for your existing model you will want to:
  1. Open the model in question
  2. Go to Simulation > Model Configuration Parameters
  3. In the window that opens, expand the Code Generation section in the tree to the left
  4. Click on Interface in the tree to the left
  5. Check the option MAT-file logging there
  6. Apply the changes, save your model, and try building it again
Marc
Marc 2014 年 10 月 24 日
Thank you for your help
Marc
Marc 2014 年 11 月 4 日
Hello,
In my own target I don't have this Interface menu, so how can I add this MAT-file logging option ? I succeeded in adding the check box on the "configuration parameters" HMI but I don't know how to make it functional.
Thank you

サインイン to comment.

その他の回答 (1 件)

Jon Boerner
Jon Boerner 2014 年 10 月 20 日
You are correct that the file will not be anywhere in your MATLAB installation. That file is actually created during the code generation process when certain conditions are met. The conditions are explained in this documentation page (ctrl+f for "builtin_typeid_types.h" to find the right table entry):
Generally, the rt_logging.h file is only used if you are logging data to a MAT-file (or maybe using the C API?). So it assumes the MAT-file logging option is checked, which would in turn create the "builtin_typeid_types.h" file.
The best fix is probably to check the 'Enable MAT-file logging' option like the documentation page above describes.

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by