TLC error when generating Simulink model code

조회 수: 71 (최근 30일)
computer12345
computer12345 2023년 6월 2일
답변: Piyush 2023년 6월 15일
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.

답변 (1개)

Piyush
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.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by