Matlab Function in Simulink cannot be deployed to Arduino

조회 수: 1 (최근 30일)
Sinan Ibrahim Bayraktar
Sinan Ibrahim Bayraktar 2017년 8월 9일
답변: Meeshawn Marathe 2017년 10월 17일
I have a simulink model which contains a Matlab Funtion inside, when i try to deploy it to arduino i get an error like:
Nested functions are not supported.
Function 'arduino.m' (#44.43600.43622), line 1026, column 22:
"validateBoardPortMatch"
Launch diagnostic report.
Component:MATLAB Function | Category:CodererrorOpen
Errors occurred during parsing of MATLAB function 'MATLAB Function'
Component:MATLAB Function | Category:Codererror
Errors occurred during parsing of MATLAB function 'MATLAB Function'
Component:Simulink | Category:Blockerror
What should i do to fix this problem?

답변 (2개)

Bruno Marin
Bruno Marin 2017년 9월 27일
I have this problem too...

Meeshawn Marathe
Meeshawn Marathe 2017년 10월 17일
Which release of MATLAB are you using? The latest version of MATLAB supports code generation for nested functions with some limitations. Please go through this link for more information. Additionally, go through this link for determining whether your function is suitable for code generation.
You could also try using 'level-2 MATLAB S-Function'. You can find more info on this here .

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by