Error when trying to edit Matlab Function after saving the model.

15 ビュー (過去 30 日間)
Timo Koivula
Timo Koivula 2023 年 12 月 22 日
コメント済み: Timo Koivula 2024 年 1 月 2 日
Hi,
I am getting "Error while processing HTTP request. Bad URI syntax" when trying open/edit the Matlab Function added to a Simulink Model. However, this only happens when I have saved the Model. Before saving, it is opening with no problems. Also, if I copy the particular Matlab Function Block to an not-saved model, it works ok.
Any advice would be appreciated.
BR Timo
  2 件のコメント
Ganesh
Ganesh 2023 年 12 月 22 日
Does this issue repeat once you save the not saved model?
Timo Koivula
Timo Koivula 2023 年 12 月 22 日
Yes it does.

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

採用された回答

Ayush
Ayush 2023 年 12 月 26 日
I understand that you are getting the error "Error while processing HTTP request. Bad URI syntax", when trying to open/edit the Matlab Function added to a saved Simulink Model. Here are the possible workarounds you can follow:
  • Try restoring default path:
restoredefaultpath
  • Rehashing toolbox cache:
rehash toolboxcache
  • Refreshing customizations:
sl_refresh_customizations
You may read further on them from here:
  1. https://www.mathworks.com/help/matlab/ref/restoredefaultpath.html
  2. https://www.mathworks.com/help/matlab/ref/rehash.html
  3. https://www.mathworks.com/help/simulink/slref/sl_refresh_customizations.
If the issue still persists then try to check if your path contains special characters like '&' with spaces in between. Try to rename the folder by removing such special characters from the path.
Thanks,
Ayush Jaiswal
  1 件のコメント
Timo Koivula
Timo Koivula 2024 年 1 月 2 日
Thanks Ayush,
I think the problem indeed is that I have spaces in my folder names.
BR Timo

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by