serial communication matlab to serial port?
30 ビュー (過去 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 で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!