Build error in Simulink using TCP/IP Send block

14 次查看(过去 30 天)
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