TLC error when generating Simulink model code

38 visualizzazioni (ultimi 30 giorni)
computer12345
computer12345 il 2 Giu 2023
Risposto: Piyush il 15 Giu 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.

Risposte (1)

Piyush
Piyush il 15 Giu 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.

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by