fread doesn't work
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
David Sanchez
el 13 de Nov. de 2013
You are trying to read data that are not available yet. Try with fscanf.
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!