how to set preference to arduino ide, what file exactly is it?

조회 수: 4 (최근 30일)
Dan Sergison
Dan Sergison 2011년 12월 15일
trouble folowing these instruction,.
what file is the actual IDE? arduino-0022 does not exist. arduino.exe does not work.
(example from instalation instruction copied below)
a) Specify location of the Arduino IDE
>> arduino.Prefs.setArduinoPath('c:\Program Files\arduino\arduino-0022')
b) Specify Arduino board (Duemilanove, Uno, Mega, etc.)
>> arduino.Prefs.setBoard % see list of board options
>> arduino.Prefs.setBoard('uno') % choose a specific board
my arduino installation directory is: c:\arduino-1.0
target dir is c:\arduinotarget
my matlab comand errors:
>> arduino.Prefs.setArduinoPath('c:\arduino-1.0\arduino-0022') ??? Error using ==> Prefs>Prefs.setArduinoPath at 21 The specified folder (c:\arduino-1.0\arduino-0022) does not exist
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2011년 12월 15일
It looks that error is thrown if "exist('c:\arduino-1.0\arduino-0022','dir')" returns false. Are you sure that there is a folder called 'arduino-0022' under c:\arduino-1.0?
Dan Sergison
Dan Sergison 2011년 12월 15일
there is not. i had just copied the instructions. I now have it set to just c:arduino-1.0 which contains arduino.exe

댓글을 달려면 로그인하십시오.

채택된 답변

Chirag Gupta
Chirag Gupta 2011년 12월 15일
Dan, I would suggest using arduino-023 or arduino-022. Arduino-1.0 has significant changes as compared to the previous versions including reorganizing of some files (structure of the package, the header files etc! boards.txt is used to figure out the board settings and the placement of this file has changed with arduino 1.0)
(For example, Wprogram.h has been renamed to Arduino.h)
  댓글 수: 3
Chirag Gupta
Chirag Gupta 2011년 12월 15일
yes! Even arduino 023 would work fine!
Dan Sergison
Dan Sergison 2011년 12월 15일
thank you. it works now with 22 installed.
had trouble with building and example, problem with with a simulink arduino_make_rtw_hook, . will open an appropriate thread.
thanks again ALL of you for helping!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Chirag Gupta
Chirag Gupta 2011년 12월 15일
The release before arduino-1.0 was arduino-023 (and before that was arduino-022)
Just set the arduino root folder (under which arduino.exe is present)
  댓글 수: 2
Dan Sergison
Dan Sergison 2011년 12월 15일
I did that, but then I cant figure out ow to set the board preferences. I figured it must be because I had specified the wrong path. I did not know that arduino.exe was the "IDE file" it was looking for, thank you. still, I can't proceede.
my path is set to the directory with arduino.exe
>> arduino.Prefs.setArduinoPath('c:\arduino-1.0')
per instruction part b I tried to list the available boards:
>> arduino.Prefs.setBoard
??? Reference to non-existent element of a cell array.
Error in ==> Prefs>Prefs.parseBoardsFile at 227
lhs = parsedLines{i}{1}{1}; % can be of the form xx.yy.zz
Error in ==> Prefs>Prefs.setBoard at 66
boards = arduino.Prefs.parseBoardsFile(boardsFile);
and tried to set to UNO
>> arduino.Prefs.setBoard('uno')
??? Reference to non-existent element of a cell array.
Error in ==> Prefs>Prefs.parseBoardsFile at 227
lhs = parsedLines{i}{1}{1}; % can be of the form xx.yy.zz
Error in ==> Prefs>Prefs.setBoard at 66
boards = arduino.Prefs.parseBoardsFile(boardsFile);
Dan Sergison
Dan Sergison 2011년 12월 15일
(I am using matlab R2009b)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by