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!