Go Down

Topic: Connecting Arduino uno whith Simulink (Read 1 time) previous topic - next topic

agrk

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

fitzner

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

ecigan

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy