'fl:filesy​stem:PathN​otFound' was caught. error came back

68 visualizaciones (últimos 30 días)
Matthew
Matthew el 6 de Jun. de 2024
Respondida: Ayush Singh el 18 de Jun. de 2024
I have a MATLAb script and simulink model that keep givening an error when building:
Error:STD exception 'class mwboost::exception_detail::clone_impl<class fl::filesystem::PathNotFound>': 'fl:filesystem:PathNotFound' was caught.
I had fixed the error by closing MATLAB, deleating the slprj folder, and then reopeingin and building the model. After building the model it created another slprj folder and ran fine. After working on the model a bit more I closed MATLAB and came back to it after. Now I'm getting the same errorl; however, feleating the folder and reloading MATLAB does not solve the issue. I cannot find any reasoruce on the error with a suggestion besides what I have already tried.
Thanks

Respuestas (1)

Ayush Singh
Ayush Singh el 18 de Jun. de 2024
Hi Matthew,
The 'fl:filesystem:PathNotFound' error in MATLAB indicates that MATLAB cannot find a specified file or directory path. This error is often encountered when using file or directory operations such as reading, writing, or navigating the file system.
You can try out few troubleshooting steps below:
  1. Ensure that you have the necessary permissions to access the file or directory. Lack of permissions can lead to errors when attempting to read from or write to a file or directory.
  2. Relative paths depend on the current working directory, which might not be what you expect, especially in a complex project or when running scripts and functions from different directories. Try using absolute paths to specify the file or directory location explicitly.
  3. If the error pertains to a MATLAB function or file that should be accessible, ensure that its containing folder is on the MATLAB path. You can add directories to the MATLAB path using the 'addpath' function.
addpath('path/to/your/directory');
Hope the above steps help you!

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by