Ошибка: неопределенные параметры в файле TLC при попытке развернуть модель Simulink в Arduino
В то время как я пытаюсь развернуть модель Simulink в Arduino Mega 2560, эти ошибки возникают. Я использую версию Matlab 2017B Educationla, и модель содержит функцию Matlab M s. В последние несколько месяцев я смог сгенерировать tlc-файл из этой s-функции (теперь больше нет, я не знаю почему). Я использую этот сгенерированный tlc, но я не смог решить проблему.
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:
[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]
[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
[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)
[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]
[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
[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
С уважением