Warning in reading data from serial port.
이전 댓글 표시
I'm trying to read a single character 'A' from serial port, But it is issuing a warning always.
CharVar = fscanf(SerialObj,'%c',1);
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached or SIZE values were available.
답변 (1개)
Jan
2013년 8월 17일
0 개 추천
The message seems to tell you, that Matlab did not receive a character and/or the corresponding terminator before the timeout occurred. So it might be useful to show us the command used for opening the port (especially the timeout value) and explain, if you are sure, that the character has been sent in the required period of time.
댓글 수: 3
Sabarinathan Vadivelu
2013년 8월 19일
Sabarinathan Vadivelu
2013년 8월 19일
편집: Sabarinathan Vadivelu
2013년 8월 19일
Jan
2013년 8월 25일
What about increasing the value of the TimeOut?
카테고리
도움말 센터 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!