fread doesn't work
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I tried to use fread with the little script in the 'help fread' in matlab, using my active COM but I get an error!
s = serial('COM3');
fopen(s);
fprintf(s, 'Curve?');
data = fread(s, 512);
The error is:
Warning: Unsuccessful read: The specified amount of data was not returned within the Timeout period.
0 件のコメント
回答 (1 件)
David Sanchez
2013 年 11 月 13 日
You are trying to read data that are not available yet. Try with fscanf.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!