Go Down

Topic: help: Interfacing Arduino with MatLab (Read 1 time) previous topic - next topic

gkc

Sep 01, 2013, 08:43 pm Last Edit: Sep 01, 2013, 08:46 pm by gkc Reason: 1
I am new to arduino field, any help with setting up Arduino Due with Matlab 2013/2012 would be appreciated. I have downloaded ArduinoIO from mathworks and using arduino-1.5.2.

When I try to load adiosrv.pde to arduino due I get following error message.

adiosrv.pde: In function 'void loop()':
adiosrv:493: error: invalid conversion from 'int' to 'eAnalogReference'
adiosrv:493: error: initializing argument 1 of 'void analogReference(eAnalogReference)'
adiosrv:497: error: 'INTERNAL' was not declared in this scope
adiosrv:501: error: invalid conversion from 'int' to 'eAnalogReference'
adiosrv:501: error: initializing argument 1 of 'void analogReference(eAnalogReference)'

noblepepper

What type of Arduino is the software from mathworks supposed to work with?

Since the sketch suffix is pde, it makes me think it is not intended for the Due, the sketch suffix was changed to ino some time ago.

Straighten out the type conversion problems first, they may be causing some of the other issues. An int is 32 bits on a Due and 16 bits on any other Arduino which are based on AVR architecture instead of ARM. You can find the data type sizes in the Arduino reference http://arduino.cc/en/Reference/HomePage 

You may find more help at the MATLAB site if there aren't a lot of MATLAB users here.


Josef1234

Hi,

I am having the very same problem and cannot find a solution - it is driving me crazy!  Did you have any luck sorting this out? 

Thanks in advance

Joe

Go Up