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.

답변 (1개)

David Sanchez
David Sanchez 2013년 11월 13일

0 개 추천

You are trying to read data that are not available yet. Try with fscanf.

카테고리

도움말 센터File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

제품

질문:

2013년 11월 13일

답변:

2013년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by