Error in PIL testing using Arduino

조회 수: 11 (최근 30일)
piyush Pandey
piyush Pandey 2020년 8월 31일
댓글: CHELLAKHI ABDELKHALEK 2023년 12월 30일
I am trying to run PIL simulation of a subsystem on an Arduino Uno board. I have created the PIL block but on running the simulation, I get the following error:
Data type "double" is not supported for SIL or PIL execution with the current target configuration. This is because the host size (8 bytes) and target size (4 bytes) do not match. To avoid this error, do not use this data type at the component interface.
In my controller there are certain blocks which require "double" data type(dq0 to abc). Is there a way to run the test?

채택된 답변

Arun Kumar
Arun Kumar 2020년 9월 3일
Hi Piyush,
Double datatype is not supported for AVR targets. Either remove double datatype from your model or use some other targets like SAM(Arduino due) or SAMD(Arduino MKR1000/MKR1010/MKRZero).
HTH!
-Arun
  댓글 수: 2
piyush Pandey
piyush Pandey 2020년 9월 3일
Yes I figured out the problem and canged the model accordingly.
Thanks.
CHELLAKHI ABDELKHALEK
CHELLAKHI ABDELKHALEK 2023년 12월 30일
How you are doing that?
can you provide more information, please.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Embedded Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by