serial communication matlab to serial port?
3 次查看(过去 30 天)
显示 更早的评论
Hi...
i am doing the project in real time. for that i need to send some array from matlab to serial port. for this any i need any command or and matlab code.
Thanks in advance...
1 个评论
Matt Kindig
2014-2-6
Just use the serial() function to create a connection to your serial port, and then fopen() to open the port, fwrite() (or fprintf()) to send data through the serial port, fread() (or fscanf()) to retrieve data through the port, and fclose() to close the port. I would start here:
doc serial
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!