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

조회 수: 3 (최근 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

답변 (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일
+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 CenterFile 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!

Translated by