TLC error when generating Simulink model code
71 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am trying to generate the model code for my Simulink model which has some dSPACE blocks in it. When I try to build, I get the following TLC related errors:
Error: File: C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\opaquelib.tlc Line: 6 Column: 10
Unable to open %include file file_name_aux.tlc
Main program:
==> [00] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\opaquelib.tlc:<NONE>(6)
Error: File: C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\blocks\opaque.tlc Line: 14 Column: 23
Attempt to call a non-function value: NULL
Main program:
==> [00] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\blocks\opaque.tlc:BlockTypeSetup(14)
[01] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\private_api\blocksetuplib.tlc:BlockSetupAndCompatibilityCheck(107)
[02] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\commonpass.tlc:<NONE>(51)
Error: File: C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\blocks\opaque.tlc Line: 15 Column: 49
Undefined identifier protoBuf
Main program:
==> [00] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\blocks\opaque.tlc:BlockTypeSetup(15)
[01] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\private_api\blocksetuplib.tlc:BlockSetupAndCompatibilityCheck(107)
[02] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\commonpass.tlc:<NONE>(51)
Error: File: C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\fixpt\fixptlib.tlc Line: 1988 Column: 16
Unable to open %include file file_name_fixpt_util.tlc
Main program:
==> [00] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\fixpt\fixptlib.tlc:FixPt_LoadFixPtUtils(1988)
[01] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6309)
[02] C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\mw\formatwide.tlc:<NONE>(70)
Error Message #01144: Could Not Generate Code
Could not generate code for the file_name model: Error: File: C:\Software\Mathworks\Matlab_All_Products_2020a\rtw\c\tlc\fixpt\fixptlib.tlc Line: 1989 Column: 9
Attempt to call a non-function value: CGIRBlockRegisterFixPointFunctions
Do you know what the issue could be?
Thank you.
0 件のコメント
回答 (1 件)
Piyush
2023 年 6 月 15 日
Hello,
I understand that you are receiving errors related to TLC while you are trying to generate code from you Simulink model.
Please go through this documentation. It has mentioned many TLC errors explanation which may help you.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!