How can I complete the installation of MATLAB Support Package for Arduino (aka ArduinoIO Package)
2 次查看(过去 30 天)
显示 更早的评论
Hi, I downloaded the Matlab Support Package for Arduino from the file exchange location http://www.mathworks.com/matlabcentral/fileexchange/32374. However the installation as stated in the accompanying Readme.txt file could not be completed. I followed the steps listed below, but when I try to run the script file Arduino.m I get the following error.
"??? Error using ==> run classdef arduino | Missing operator, comma or semi-colon"
Could you please help resolve this problem? Here are the details
I have Arduino Duemilanove with Atmel Chip 328. The srv.pde has been loaded successfully and tested on the IDE using the SEND command ie 99 returns 3. Next the Arduino package is located in C:\ directory same as ArduinoIO package, and when I list the PATH command to Matlab, it shows the Path of the Arduino Package "C:/examples, C:\simulink, C:\" with the C:\MATLABR11 files. Instead of running the script from the Matlab drop down menu I chose the alternate way of typing
"a=arduino('COM4')". The response from Matlab is similar " ??? classdef arduino | Missing operator,comma,or semicolon Error in ==> c:\arduino.m Online 1 ==> classdef arduino > handle"
I am using MS Windows XP, Matlab version5.3(R11.1). Any help would be appreciated. Thanks
0 个评论
回答(1 个)
Rolfe Dlugy-Hegwer
2013-8-19
MATLAB Support Package for Arduino indicates support for MATLAB 7.10 (R2010a)... Maybe your version doesn't work with this support package.
1 个评论
Kaustubha Govind
2013-8-19
+1
The arduino.m file is a MATLAB Class defined using the classdef keyword which was introduced in R2008a, so it would be impossible to use it in R11.1. Also, since the package indicates support from R2010a onwards, there is no guarantee that it will work in a release older than that.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!