Matlab asks me to install Arduino package at every session (Linux)

조회 수: 1 (최근 30일)
Joan Aguilar Mayans
Joan Aguilar Mayans 2016년 1월 5일
댓글: Joan Aguilar Mayans 2016년 1월 11일
Every time I start Matlab and try to use the Arduino package I get the following message:
>> a = arduino('/dev/ttyUSB0', 'Uno')
You need the MATLAB Arduino support package before you can use this feature. Open Support Package Installer to install support for additional MATLAB hardware.
I install it and everything goes fine, no errors. If I restart Matlab and try to use the Arduino package again I get the above message again. Is there anyway to keep the Arduino package installed?
I'm on Ubuntu 14.04 64 bit and Matlab R2015b.

답변 (1개)

Sudhanshu Bhatt
Sudhanshu Bhatt 2016년 1월 7일
Hi Joan,
I understand that every time MATLAB is restarted the Audrino Support package gets removed.
Some of the possible reasons this behavior could happen:
1) If the support package folders are being installed in a temporary folder.
2) If you are executing the RESTOREDEFAULTPATH command this could remove the support packages from the MATLAB Path.
To fix this issue, you can try the following solutions:
1) You can try installing the support package in another folder.
2) Also, after installing the support package you can check the installation directory to see if the files are present.
Hope this helps.
If this does not resolve your issue, you can create a Technical Support Ticket .
Thanks
Sudhanshu Bhatt
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 1월 7일
Installation of the support packages also changes something in prefdir
Note: for some of the versions before R2015b, some MS Windows users find that they need to Run as Administrator in order to install support packages permanently. I think I read that it was fixed, but I am not certain. This has to do with whether the support package is to be installed for the one user or for everyone on the machine, which is a tension that exists on Linux as well -- installing only for the user does not require writing to protected directories but installing for everyone does require writing to protected directories.
Joan Aguilar Mayans
Joan Aguilar Mayans 2016년 1월 11일
Yes, I thought about this too, but I can't run Matlab using sudo as I get a license error. Specifically:
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.

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

카테고리

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