Error regarding undefined parameters in TLC file

2 ビュー (過去 30 日間)
Zakarya Motea
Zakarya Motea 2018 年 2 月 25 日
Hi while i am trying to deploy a simulink model into arduino mega 2560, these errors occurs. I am using matlab 2017b educationla version and the model contains matlab m s-function. last few months i was able to generate tlc file from this s-function (now no any more, i dont know why). I am using that generated tlc but i couldnt resolve the problem.
Error: File: Model1discreteWithArduino.tlc Line: 90 Column: 46
Undefined identifier P1
Main program:
==> [00] Model1discreteWithArduino.tlc:Outputs(90)
[01] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\blocks\msfunction.tlc:Outputs(249)
[02] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[03] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(4368)
[04] C:\Users\shukri\Documents\MATLAB\zakarito\forarduinoA_Model_ert_rtw\tlc\s4_b0_c854c_Outputs.tlc:Outputs(20)
[05] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5050)
[06] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(4945)
[07] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(253)
[08] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(498)
[09] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(600)
[10] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1394)
[11] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(5400)
[12] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(55)
Error: File: C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc Line: 1668 Column: 42
Undefined identifier param
Main program:
==> [00] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:LibBlockParameterSize(1668)
[01] Model1discreteWithArduino.tlc:Outputs(90)
[02] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\blocks\msfunction.tlc:Outputs(249)
[03] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[04] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(4368)
[05] C:\Users\shukri\Documents\MATLAB\zakarito\forarduinoA_Model_ert_rtw\tlc\s4_b0_c854c_Outputs.tlc:Outputs(20)
[06] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5050)
[07] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(4945)
[08] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(253)
[09] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(498)
[10] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(600)
[11] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1394)
[12] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(5400)
[13] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(55)
Error: File: C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc Line: 71 Column: 47
Undefined identifier param
Main program:
==> [00] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:SLibGetSizeOfValueFromParamRec(71)
[01] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:LibBlockParameterSize(1668)
[02] Model1discreteWithArduino.tlc:Outputs(90)
[03] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\blocks\msfunction.tlc:Outputs(249)
[04] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[05] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(4368)
[06] C:\Users\shukri\Documents\MATLAB\zakarito\forarduinoA_Model_ert_rtw\tlc\s4_b0_c854c_Outputs.tlc:Outputs(20)
[07] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5050)
[08] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(4945)
[09] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(253)
[10] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(498)
[11] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(600)
[12] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1394)
[13] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(5400)
[14] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(55)
Error: File: C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc Line: 21 Column: 41
Undefined identifier param
Main program:
==> [00] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:SLibGetValueFromParamRec(21)
[01] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:SLibGetSizeOfValueFromParamRec(71)
[02] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\paramlib.tlc:LibBlockParameterSize(1668)
[03] Model1discreteWithArduino.tlc:Outputs(90)
[04] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\blocks\msfunction.tlc:Outputs(249)
[05] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[06] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(4368)
[07] C:\Users\shukri\Documents\MATLAB\zakarito\forarduinoA_Model_ert_rtw\tlc\s4_b0_c854c_Outputs.tlc:Outputs(20)
[08] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5050)
[09] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(4945)
[10] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(253)
[11] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(498)
[12] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(600)
[13] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1394)
[14] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(5400)
[15] C:\Program Files\MATLAB\R2017b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(55)
### Build procedure for model: 'forarduinoA_Model' aborted due to an error.
Error: File: C:\Program Files\MATLAB\R2017b\rtw\c\tlc\lib\dtypelib.tlc Line: 2198 Column: 15
Undefined identifier rec
Regards

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by