I can not connect my arduino to MATLAB

조회 수: 15 (최근 30일)
Hien Ngoc
Hien Ngoc 2013년 11월 10일
댓글: Chalachew Werku 2021년 2월 14일
>> a=arduino('COM5'); Attempting connection ............. Warning: Unsuccessful read: A timeout occurred before the Terminator was reached. Error using arduino (line 104) Connection unsuccessful, please make sure that the board is powered on, running a sketch provided with thepackage, and connected to the indicated serial port. You might also try to unplug and re-plug the USB cable before attempting a reconnection. Please tell me how to fix this error, i used Matlab 2013a, does it support this feature?

채택된 답변

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013년 11월 10일
Which sketch are you using? During the mean time, please try this workaround.
  댓글 수: 2
Hien Ngoc
Hien Ngoc 2013년 11월 10일
I am using "the blink led" sketch during the time . But it still does not run.
Hien Ngoc
Hien Ngoc 2013년 11월 11일
Thank you so much, I open a file PDE in Arduino IDE, ok, it runs well

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Brais Gonzalez
Brais Gonzalez 2017년 11월 21일
Answer for Error using arduino (line 104) Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
The answer is: 1 In the Arduino software(IDE). You need write the code, which you find in file "adioes.pde" There are three files adio, adioe, adioes. A for analog D for digital I for input O for Output E for encoder S for Servo. If you need a Servo o a encoder, you need put the code more complete adioes. 2 Compile this code and send to arduino. Close the IDE 3 To open matlab and to write a=arduino("COMxx") 4 You has finalized the Arduino instalation
  댓글 수: 2
Mohammed Zaid Khan
Mohammed Zaid Khan 2020년 9월 3일
thanks, i faced the same problem. I sought out the problem with your method. Thanks a lot.
Chalachew Werku
Chalachew Werku 2021년 2월 14일
Me too, thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by