How can i change the path for C:\Program​Data\MATLA​B\SupportP​ackages\R2​017a\3P.in​strset\ev3​javahidapi​.instrset\​javahidapi​\hidapi-1.​1.jar to my D:\Program​Data\MATLA​B\...?

6 ビュー (過去 30 日間)
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?
  2 件のコメント
Alejandro Salgado
Alejandro Salgado 2017 年 12 月 5 日
編集済み: Alejandro Salgado 2017 年 12 月 5 日
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.

サインインしてコメントする。

回答 (1 件)

Cenk M. Yetis
Cenk M. Yetis 2021 年 12 月 3 日
Any answer to this important question? We would like to install Matlab on SSD and keep everything on SSD.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by