How can I complete the installation of MATLAB Support Package for Arduino (aka ArduinoIO Package)

2 ビュー (過去 30 日間)
V 2013 年 4 月 17 日
Hi, I downloaded the Matlab Support Package for Arduino from the file exchange location 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

回答 (1 件)

Rolfe Dlugy-Hegwer
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
Kaustubha Govind 2013 年 8 月 19 日
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 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