Attempting connection with Arduino and Matlab

3 ビュー (過去 30 日間)
Bryan Rothschild
Bryan Rothschild 2016 年 4 月 25 日
編集済み: Arnab Sen 2016 年 4 月 28 日
Hi! I am using simulink and connection an arduino uno board to my mac via USB. My problem is, whenever I run my code, the command window says, " attempting connection . . . . . " This takes a long time, about 10 seconds. Any way to make it faster?

採用された回答

Arnab Sen
Arnab Sen 2016 年 4 月 28 日
編集済み: Arnab Sen 2016 年 4 月 28 日
Hello Bryan,
The origin of this issue could be that the MATLAB serial command is taking longer to respond. Try opening the arduino.m file and replacing the lines 89 to 92:
for i=1:7,
fprintf(1,'.');
pause(1);
end
with these ones:
for i=1:15,
fprintf(1,'.');
pause(1);
end
to see if that solves the issue.
Following links might be helpful:
In case the issue still persists, you may consider contacting MathWorks Technical Support Team of your region and their Engineer will look into more details into the matter and assist you to resolve it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by