serial communication matlab to serial port?

조회 수: 1 (최근 30일)
venkat vasu
venkat vasu 2014년 2월 6일
편집: Walter Roberson 2014년 2월 6일
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
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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by