MATLAB Answers

Ruzam
0

Arduino hardware support package installation location ?

Asked by Ruzam
on 28 Oct 2016
Latest activity Answered by Kurt Stewart on 17 May 2018
Hi there,
I have downloaded and installed the arduino hardware package. However it is not appearing in my list of add-ons so eveytime I type: a=arduino();
It states I need the arduino support package.
It has installed itself in a separate file called MATLAB,inside is R2015b then support packages, with this outside of my program files and program filesx86. My main MATLAB file is in the programx86 file.
Where can I move the support package file in order for this package to work?
Any help would be greatly appreciated.
Also this is some text that was printed while the package was installing.
Warning: Unable to save path to "C:\Program Files (x86)\MATLAB\R2015b\toolbox\local\pathdef.m".
MATLAB may not have write access to the folder. Possible fix:
1) Use SAVEPATH with an input argument to save path to a temporary file
2) Restart MATLAB as Administrator
3) Load path from temporary file
4) Call SAVEPATH
> In hwconnectinstaller.RegistryUtils.savePath
In hwconnectinstaller.PackageInstaller/install
In hwconnectinstaller.PackageInstaller/installRecursiveImp
In hwconnectinstaller.PackageInstaller/installRecursive
In hwconnectinstaller.internal.executeConfirm>installFromFolder
In hwconnectinstaller.internal.executeConfirm>installWorkflow
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.Step/next
In hwconnectinstaller.internal.executeConfirm>@(varargin)hStep.next(varargin{:})
In hwconnectinstaller.util.download.MWDownloadManager/fireMethod
In hwconnectinstaller.util.download.MWDownloadManager/initCallback/serviceCallback
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)
Warning: Unable to save path to "C:\Program Files (x86)\MATLAB\R2015b\toolbox\local\pathdef.m".
MATLAB may not have write access to the folder. Possible fix:
1) Use SAVEPATH with an input argument to save path to a temporary file
2) Restart MATLAB as Administrator
3) Load path from temporary file
4) Call SAVEPATH
> In hwconnectinstaller.RegistryUtils.savePath
In hwconnectinstaller.PackageInstaller/install
In hwconnectinstaller.PackageInstaller/installRecursiveImp
In hwconnectinstaller.PackageInstaller/installRecursive
In hwconnectinstaller.internal.executeConfirm>installFromFolder
In hwconnectinstaller.internal.executeConfirm>installWorkflow
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.Step/next
In hwconnectinstaller.internal.executeConfirm>@(varargin)hStep.next(varargin{:})
In hwconnectinstaller.util.download.MWDownloadManager/fireMethod
In hwconnectinstaller.util.download.MWDownloadManager/initCallback/serviceCallback
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)
Warning: Unable to save path to "C:\Program Files (x86)\MATLAB\R2015b\toolbox\local\pathdef.m".
MATLAB may not have write access to the folder. Possible fix:
1) Use SAVEPATH with an input argument to save path to a temporary file
2) Restart MATLAB as Administrator
3) Load path from temporary file
4) Call SAVEPATH
> In hwconnectinstaller.RegistryUtils.savePath
In hwconnectinstaller.PackageInstaller/install
In hwconnectinstaller.PackageInstaller/installRecursiveImp
In hwconnectinstaller.PackageInstaller/installRecursive
In hwconnectinstaller.internal.executeConfirm>installFromFolder
In hwconnectinstaller.internal.executeConfirm>performThreadedDownload
In hwconnectinstaller.internal.executeConfirm>installFromInternet
In hwconnectinstaller.internal.executeConfirm>installWorkflow
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.Step/next
In hwconnectinstaller.internal.executeConfirm>@(varargin)hStep.next(varargin{:})
In hwconnectinstaller.util.download.MWDownloadManager/fireMethod
In hwconnectinstaller.util.download.MWDownloadManager/initCallback/serviceCallback
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)
Warning: Unable to save path to "C:\Program Files (x86)\MATLAB\R2015b\toolbox\local\pathdef.m".
MATLAB may not have write access to the folder. Possible fix:
1) Use SAVEPATH with an input argument to save path to a temporary file
2) Restart MATLAB as Administrator
3) Load path from temporary file
4) Call SAVEPATH
> In hwconnectinstaller.RegistryUtils.savePath
In hwconnectinstaller.PackageInstaller/install
In hwconnectinstaller.PackageInstaller/installRecursiveImp
In hwconnectinstaller.PackageInstaller/installRecursive
In hwconnectinstaller.internal.executeConfirm>installFromFolder
In hwconnectinstaller.internal.executeConfirm>performThreadedDownload
In hwconnectinstaller.internal.executeConfirm>installFromInternet
In hwconnectinstaller.internal.executeConfirm>installWorkflow
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.internal.executeConfirm
In hwconnectinstaller.Step/next
In hwconnectinstaller.internal.executeConfirm>@(varargin)hStep.next(varargin{:})
In hwconnectinstaller.util.download.MWDownloadManager/fireMethod
In hwconnectinstaller.util.download.MWDownloadManager/initCallback/serviceCallback
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)

  1 Comment

I try to change the authority of user in 'local folder' and add path to solve the problem.
<<
<<
>>
>>

Sign in to comment.

2 Answers

Answer by Kurt Stewart on 17 May 2018

type this in your matlab command line: matlabshared.supportpkg.getSupportPackageRoot

  0 Comments

Sign in to comment.


Answer by Vishwas Bharadwaj on 1 Nov 2016
Edited by Vishwas Bharadwaj on 1 Nov 2016

For MATLAB R2013a and later releases, the Support Packages are downloaded and installed in:
C:\MATLAB\SupportPackages
Coming to the warning message, MATLAB might be showing this warning because the User Access Control (UAC) is turned on in windows. As a result of which the "savepath" function is not available.
As a workaround, I would suggest you to open MATLAB in Administrator mode and then install the support package.
Also, to get a list of support packages installed in a machine you can use the following command:
matlabshared.supportpkg.getInstalled
Hope this helps!

  0 Comments

Sign in to comment.