MATLAB Answers

Warning: Unsuccessful read: Matching failure in format.

chfakht chfakht 님이 질문을 제출함. 6 Feb 2015
최근 활동 Jan 님이 댓글을 추가함. 7 Feb 2015
hi all , i'm getting this error whentrying to read serial data send from arduino in matlab
clear all
close all
% create serial communication object on port COM14
fopen(arduin); % initiate arduino communication
% You must call TIC without an output argument before
% calling TOC without an input argument.
% data va recevoir le type de mesure
while (toc<=20) % stop after 20 secs
data = fscanf(arduin,'%f');
fclose(arduin); % end communication with arduino

  댓글 수: 1

Please post the complete error message and mention, which line causes the problem.

로그인 to comment.

답변 수: 0

Translated by