Build error in Simulink using TCP/IP Send block
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alex Papdi
el 1 de Oct. de 2022
Comentada: Alex Papdi
el 7 de Oct. de 2022
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'.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1141860/image.png)
0 comentarios
Respuesta aceptada
Arun Kumar
el 4 de Oct. de 2022
Hi Alex,
Please use the following block for TCP/IP communication on arduino board:
Hope this helps!
9 comentarios
Arun Kumar
el 6 de Oct. de 2022
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Run on Target Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!