MATLAB Answers

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

10 views (last 30 days)
V
V on 17 Apr 2013
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 Comments

Sign in to comment.

Answers (1)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer on 19 Aug 2013
MATLAB Support Package for Arduino indicates support for MATLAB 7.10 (R2010a)... Maybe your version doesn't work with this support package.

  1 Comment

Kaustubha Govind
Kaustubha Govind on 19 Aug 2013
+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.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!

Translated by