Effacer les filtres
Effacer les filtres

TLC error when generating Simulink model code

52 vues (au cours des 30 derniers jours)
computer12345
computer12345 le 2 Juin 2023
Réponse apportée : Piyush le 15 Juin 2023
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.

Réponses (1)

Piyush
Piyush le 15 Juin 2023
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.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by