2013b: installed pkg: but still function 'arduino' is not working on mac

1 回表示 (過去 30 日間)
Junghee
Junghee 2013 年 12 月 18 日
回答済み: Brais Gonzalez 2018 年 4 月 9 日
Because I saw error message saying that Arduino support package is not compatible for mac unless I have 2013b, I installed 2013b.
After that, I downloaded support package and installed it.
Because of that, arduinouno_gettingstarted simulation worked.
But only that, I wasn't able to use 'arduino' functions..
such as:
a = arduino('/dev/tty.usbmodemfa131') -> for mac
Is it because I don't have EDU version or because I'm using a trial version??
I saw that Data Acquisition Toolbox (which is what I needed) is not offered… as well..
I really need to finish my project.. and running out of time but can't figure this out!!
Please, if anybody had same experience or knows how to fix it.. Tell me.
Thanks!

回答 (1 件)

Brais Gonzalez
Brais Gonzalez 2018 年 4 月 9 日
You need to use by Giampiero Campa Legacy MATLAB and Simulink Support for Arduino between Matlab Arduino 2006 and Matlab Arduino 2013
Explanation in https://es.mathworks.com/matlabcentral/fileexchange/32374-legacy-matlab-and-simulink-support-for-arduino?focused=6202591&tab=function
Additional Explanation
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 0 Comments

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by