Cannot connect arduino uno to Matlab

조회 수: 11 (최근 30일)
Flo20
Flo20 2014년 10월 17일
댓글: Walter Roberson 2016년 4월 6일
I installed the matlab arduino support package, but when I ty to connect to my arduino uno with:
a = arduino()
I get the following message:
"Unable to load a message catalog 'MATLAB:arduinoio:general'. Please check the file location and format."
I already reinstalled matlab and all the packages, but still the same error occurs.
What is going wrong? thanks in advance!
  댓글 수: 1
Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014년 10월 20일
What version of MATLAB are you using? There are different support packages for MATLAB R2014a and later, and for MATLAB R2013b and earlier.
How did you install the support package?

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

채택된 답변

Jon Boerner
Jon Boerner 2014년 10월 20일
The error you are seeing is related to how MATLAB stores and displays its error messages.
If you run the following command, what is the output?
which -all arduino
I saw your comment on the file exchange site for the ArduinoIO, so it seems like you are using that version of the support package. For newer MATLAB versions, there is a newer support package, however, reference from that older page:
It seems like there might be some kind of mismatch between your versions. If you install the newer version, the first output from the above command should be
C:\MATLAB\SupportPackages\R2014b\arduinoio\toolbox\matlab\hardware\supportpackages\arduinoio\arduino.m
if you are using Windows. If it is not, there are probably some inconsistencies in the installations (as you have mentioned) which are causing the issue.
Are you using that newer package? If not (or even if you are you might want to try this), it's easiest to install it using the command
supportPackageInstaller
That will install everything in the correct locations.
  댓글 수: 1
Flo20
Flo20 2014년 10월 20일
Thanks a lot for your answer. Today I changed my aruino UNO for an Arduino MEGA since that one is supported by Simulink and works easier with my simmechanics model.
Therefore I cannot test the UNO with a newer version. If I run the command, I indeed get the output for the newer version, so maybe that was not the problem. Also I already installed the packages with the support package installer, but via the Add-Ons button in the Home tab, so it makes sence that the newest packages are installed.
Anyway thanks for your help! but the problem is solved by using the MEGA.
greetings,
Floris

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

추가 답변 (1개)

jigar mistry
jigar mistry 2016년 4월 6일
error is: Your current working folder is: C:\Program Files\MATLAB\R2013b\bin Simulink does not permit you to build programs in the MATLAB installation area. Please change to a working folder that is not in the MATLAB installation area.
so what should do?
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 6일
You should cd to a directory that you have write access to.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by