Pages: [1]   Go Down
Author Topic: help: Interfacing Arduino with MatLab  (Read 1167 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)'
« Last Edit: September 01, 2013, 01:46:31 pm by gkc » Logged

Nashville Tennessee, USA
Offline Offline
Sr. Member
****
Karma: 15
Posts: 367
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: