Pages: [1]   Go Down
Author Topic: Connecting Arduino uno whith Simulink  (Read 1403 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

Hi
I'm trying to connect  Arduino Uno with Simulink (MATLAB2011b). I entered following commands:
>> cd d:\arduino_simulink
>> addpath(fullfile(pwd,'arduino'),fullfile(pwd,'blocks'),fullfile(pwd,'demos'))
>> savepath
>> sl_refresh_customizations
>>arduino.Prefs.setArduinoPath('d:\ArduinoTarget')
After typing:
>> arduino.Prefs.setBoard('uno')
Matlab gives:
Reference to non-existent element of a cell array.
Error in arduino/Prefs/parseBoardsFile (line 227)
                lhs = parsedLines{i}{1}{1};  % can be of the
                form xx.yy.zz
Error in arduino/Prefs/setBoard (line 66)
            boards = arduino.Prefs.parseBoardsFile(boardsFile);

What am I doing wrong?
PS.  I've connected Arduino with Matlab before and all was OK
Logged

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

Are there any support for the new Arduino Due with Simulink ?

Hi
I'm trying to connect  Arduino Uno with Simulink (MATLAB2011b). I entered following commands:
>> cd d:\arduino_simulink
>> addpath(fullfile(pwd,'arduino'),fullfile(pwd,'blocks'),fullfile(pwd,'demos'))
>> savepath
>> sl_refresh_customizations
>>arduino.Prefs.setArduinoPath('d:\ArduinoTarget')
After typing:
>> arduino.Prefs.setBoard('uno')
Matlab gives:
Reference to non-existent element of a cell array.
Error in arduino/Prefs/parseBoardsFile (line 227)
                lhs = parsedLines{i}{1}{1};  % can be of the
                form xx.yy.zz
Error in arduino/Prefs/setBoard (line 66)
            boards = arduino.Prefs.parseBoardsFile(boardsFile);

What am I doing wrong?
PS.  I've connected Arduino with Matlab before and all was OK
Logged

Massachusetts, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As of R2012, MathWorks supports Uno and Mega 2560 - for further info, see www.mathworks.com/academia/arduino-software/
Logged

Pages: [1]   Go Up
Jump to: