Build error in Simulink using TCP/IP Send block

조회 수: 14 (최근 30일)
Alex Papdi
Alex Papdi 2022년 10월 1일
댓글: Alex Papdi 2022년 10월 7일
I've made a simple project using Instrument Control Toolbox but every time I try to build my project to my Arduino Nano 33 IoT in external mode, I got the following error:
  • In order to generate code from AsyncIO, the target hardware must be MATLAB Host or a compatible device. The error occurred for MATLAB System block 'Arduino_wifi/TCP//IP Send'.
I configured my hardware inside model settings to connect to my local WiFi and changed the External mode to 'XCP on WiFi'.

채택된 답변

Arun Kumar
Arun Kumar 2022년 10월 4일
Hi Alex,
Please use the following block for TCP/IP communication on arduino board:
Hope this helps!
  댓글 수: 9
Arun Kumar
Arun Kumar 2022년 10월 6일
Hi Alex,
The Arduino library's WiFi TCP/IP blocks are meant for deployment on Arduino boards and not for running simulation on the host machine.
You can use this block to receive data from TCP/IP on Arduino.
Alex Papdi
Alex Papdi 2022년 10월 7일
Hi Arun,
That's understandable. Thank you very much for your help!

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by