For now I copy the Support Packages Folder from D to C drive and its working, but still not find the solution to referencing the folder in the D drive.
How can i change the path for C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3javahidapi.instrset\javahidapi\hidapi-1.1.jar to my D:\ProgramData\MATLAB\...?
6 views (last 30 days)
Show older comments
I'm working with EV3 Support Package with Simulink. When I'm doing: h = legoev3('usb') this shows
Warning: Invalid file or directory 'C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3javahidapi.instrset\javahidapi\hidapi-1.1.jar'.
> In javaclasspath>local_validate_dynamic_path (line 271)
In javaclasspath>local_javapath (line 187)
In javaclasspath (line 124)
In javaaddpath (line 71)
In realtime.internal.addEV3JavaPath (line 17)
In realtime.internal.CommUSB (line 20)
In legoev3 (line 304)
Error using legoev3 (line 307)
Failed to connect to EV3 through USB. Please check your USB connection.
I know it is not the connection with the EV3, but it is a path error with the folder and I need to change it to my 'D' drive. I have already change the path for this:
>> realtime.internal.getEV3IORoot
ans = 'D:\ProgramData\MATLAB\SupportPackages\R2017a\toolbox\realtime\targets\ev3io'
>> matlabshared.supportpkg.getSupportPackageRoot
ans = 'D:\ProgramData\MATLAB\SupportPackages\R2017a'
But everytime I run h=legoev3('usb') seems like it didn't change and looks in the C: drive folder.
Also I change the Environment Variable - Path.
From: C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin
To: D:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin
I know that i might move all to the C drive but i do not have enough memory so i need to work in D drive.
Anyone know how to solve this error with paths?
Answers (1)
Cenk M. Yetis
on 3 Dec 2021
Any answer to this important question? We would like to install Matlab on SSD and keep everything on SSD.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!