Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Connecting Arduino uno whith Simulink on: November 28, 2012, 08:28:39 am
Are there any support for the new Arduino Due with Simulink ?

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
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
Pages: [1]