deploy raspberry pi error

조회 수: 1 (최근 30일)
chan yeoung woo
chan yeoung woo 2021년 8월 26일
답변: Kshitij Chhabra 2021년 9월 1일
I followed the example to 'Send Inputs to MATLAB Function from Command Line of Raspberry Pi'
and I got an error at the last 'deploy'
how can i solve this problem?? i use 2020b
///////////////////////////////////////////////////////////////////////////////////////////////////////
function simpleSum(a,b)
%#codegen
assert(all(size(a) ==1));
assert(isa(a,'double'));
assert(all(size(b) ==1));
assert(isa(b,'double'));
c = a + b;
fprintf('%f + %f = %f\n',a,b,c);
end
////////////////////////////////////////////////////////////////////////////////////////////////////////////
>> deploy(board,'simpleSum')
------------------------------------------------------------------------
Function 'find_system' is not defined for type 'double' input arguments.
------------------------------------------------------------------------
??? Build error: C compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report
  댓글 수: 1
Prasanth Sunkara
Prasanth Sunkara 2021년 8월 26일
Function should not take any input arguments for deployment purpose.

댓글을 달려면 로그인하십시오.

채택된 답변

Kshitij Chhabra
Kshitij Chhabra 2021년 9월 1일
From my understanding, you are trying to deploy the function "simpleSum()" on a Raspberry Pi board to use it as a standalone function on the hardware. Currently MATLAB doesn't support passing of input arguments in the MATLAB function for this purpose.
For further insights, you can refer to the documentation of deploy function here.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by