How can I communicate with an Arduino MegaADK using MATLAB R2007b?

1 回表示 (過去 30 日間)
Tyler
Tyler 2012 年 9 月 14 日
Hi all,
I would like to be able to send data to an arduino from matlab and have the arduino either send it to another location or send it back to me. I would also like to be able to collect data and process it in matlab. I havent been able to get the arduino support from matlab ( http://www.mathworks.com/academia/arduino-software/arduino-matlab.html ) to work with my version (64 bit). Has anyone been able to successfully do this?
Thanks a lot.

回答 (1 件)

Chirag Gupta
Chirag Gupta 2012 年 9 月 15 日
編集済み: Chirag Gupta 2012 年 9 月 15 日
If the above package doesn't work then:
have you tried using a serial object. Typically arduino connected to the PC with USB shows up as a virtual serial port(COM). You might be able to connect to it using:
s = serial('COM2'); fopen(s);

カテゴリ

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