Sending to Simulink for arduino serial monitor
3 次查看(过去 30 天)
显示 更早的评论
I wanna send distance data in arduino serial monitor from sensor.
with serial comunication..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/413678/image.png)
In simulink, I wanna use this distance data for input, in unit (Centimeter).
Please help me.
0 个评论
回答(1 个)
Vidip
2024-1-17
I understand that you want to read distance data from an Arduino sensor and use it in Simulink.
You can use serial port 0 to communicate with other devices that have serial ports, or to communicate with a computer over the USB port. Each serial port supports one Serial Transmit and one Serial Receive block, one block per pin. You can run your model in the External mode for all the Arduino boards.
Also, you can refer to the below documentation to know about the detailed process of transmitting and receiving serial data –
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!