Arduino support package in matlab PROBLEM

10 ビュー (過去 30 日間)
chfakht chfakht
chfakht chfakht 2015 年 2 月 11 日
回答済み: Cesar Hipolito Pinto 2017 年 1 月 5 日
Hello all , i have installed the Arduino support package in matlab , and i have all blocks that come with it in my simulink the problem is that when i try to establish a serial communication i got smth like this :
>> a = arduino
>> Undefined function or variable 'arduino'.
thanks :) nb : i'm using arduino uno
  1 件のコメント
Cesar Hipolito Pinto
Cesar Hipolito Pinto 2017 年 1 月 5 日
Hi to all I was able to solve the problem, doing this way download package Arduino Package and copy i to C:\MATLAB\SupportPackages\R2013a\downloads and go to add on and get support package, after login , disconnect network and choose install from folder, the same where you have put it. Than download https://www.mathworks.com/matlabcentral/fileexchange/32374-legacy-matlab-and-simulink-support-for-arduino, ArduinoIO zipfile, unpack it and copy the PDE subdirectory to the same library subdirectory of arduino package in my case, it is this way. where i download the first package to use add on matlab feature C:\MATLAB\SupportPackages\R2013a\downloads and then a created the subdirectory with the package expanded C:\MATLAB\SupportPackages\R2013a\downloads\arduino-1.0-windows\arduino-1.0 here i have the library subdirectory,where you need to bring the PDE subdir from ArduinoIO.zip file; after that you go to Arduino IDE and file-examples-pde-adioes, compile it and upload to arduino, go to MATLAB and select the home directory to the place where you unpack ArduinoIO.zip file, now you can go to console and type a=arduino('com?')

サインインしてコメントする。

回答 (3 件)

Ariel
Ariel 2015 年 4 月 20 日
Your arduino package was not install. Go to home tag and press the "get support hardware package". Choose uninstall and see if your arduino package is installed

Avinash Kumar
Avinash Kumar 2015 年 4 月 20 日
if it is showing that then the setup is not done Properly and Then try a=arduino();
  2 件のコメント
Gamal Othman
Gamal Othman 2015 年 7 月 6 日
Hello, I tried that and the previous solution and it doesn't work ! I don't know why . Although when I upload Progs with Arduino IDE it works well . Help me please , and thanks a lot .
James
James 2016 年 11 月 27 日
did you end up getting this working?

サインインしてコメントする。


Cesar Hipolito Pinto
Cesar Hipolito Pinto 2017 年 1 月 5 日
Hi to all I was able to solve the problem, doing this way download package Arduino Package and copy i to C:\MATLAB\SupportPackages\R2013a\downloads and go to add on and get support package, after login , disconnect network and choose install from folder, the same where you have put it. Than download https://www.mathworks.com/matlabcentral/fileexchange/32374-legacy-matlab-and-simulink-support-for-arduino, ArduinoIO zipfile, unpack it and copy the PDE subdirectory to the same library subdirectory of arduino package in my case, it is this way. where i download the first package to use add on matlab feature C:\MATLAB\SupportPackages\R2013a\downloads and then a created the subdirectory with the package expanded C:\MATLAB\SupportPackages\R2013a\downloads\arduino-1.0-windows\arduino-1.0 here i have the library subdirectory,where you need to bring the PDE subdir from ArduinoIO.zip file; after that you go to Arduino IDE and file-examples-pde-adioes, compile it and upload to arduino, go to MATLAB and select the home directory to the place where you unpack ArduinoIO.zip file, now you can go to console and type a=arduino('com?')

カテゴリ

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