Warning: Unsuccessful read: Matching failure in format.

5 visualizaciones (últimos 30 días)
chfakht chfakht
chfakht chfakht el 6 de Feb. de 2015
Comentada: Jan el 7 de Feb. de 2015
hi all , i'm getting this error whentrying to read serial data send from arduino in matlab
clear all
close all
clc
% create serial communication object on port COM14
arduin=serial('COM14','BaudRate',9600);
fopen(arduin); % initiate arduino communication
% You must call TIC without an output argument before
% calling TOC without an input argument.
tic;
% data va recevoir le type de mesure
while (toc<=20) % stop after 20 secs
data = fscanf(arduin,'%f');
end
fclose(arduin); % end communication with arduino
thanks
  1 comentario
Jan
Jan el 7 de Feb. de 2015
Please post the complete error message and mention, which line causes the problem.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by