Effacer les filtres
Effacer les filtres

Warning: Unsuccessful read: Matching failure in format.

2 vues (au cours des 30 derniers jours)
chfakht chfakht
chfakht chfakht le 6 Fév 2015
Commenté : Jan le 7 Fév 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 commentaire
Jan le 7 Fév 2015
Please post the complete error message and mention, which line causes the problem.

Connectez-vous pour commenter.

Réponses (0)


En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by