- Check MATLAB Path: Ensure that the MATLAB path is set correctly, and it includes the required directories. You can check and modify the MATLAB path by using the "pathtool" command in the MATLAB Command Window.
- Reinstall SimEvents: If the issue is specific to SimEvents, try reinstalling the SimEvents toolbox. You can do this from the MATLAB Add-Ons Toolbar.
Simevents fails to run after using step-through
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I was running a simulation in fast reload an tried to press pause, then stop. Upon restarting, Matlab no longer executes my .m file. No warnings, no errors, just instead of running 100+ simulations it just immediately ends after running the .m.
I tried updating to 2021 v3 and now it gives me an error each time. "Something Unexpected Occured"
Upon restart, it now fails to load my simevents model entirely. The error message text can not be selected, so i hope this screengrab is sufficient. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/909755/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/909755/image.png)
Loading the model from matlab gives the following error.
Error loading /Applications/MATLAB_R2021b.app/bin/maci64/builtins/sl_main/mwlibmwsimulink_builtinimpl.dylib.
dlopen(/Applications/MATLAB_R2021b.app/bin/maci64/builtins/sl_main/mwlibmwsimulink_builtinimpl.dylib, 0x000A): Symbol not found: __ZN11sl_observer14WorkerQueueFcnD2Ev
Referenced from: /Applications/MATLAB_R2021b.app/bin/maci64/libmwsl_event_logging.dylib
Expected in: /Applications/MATLAB_R2021b.app/bin/maci64/libmwsl_ObserverFoundation.dylib: No such file or directory: No such file or directory
댓글 수: 0
답변 (1개)
Yash
2024년 1월 18일
Hi Ben,
It seems like you are encountering a problem with MATLAB failing to load a necessary dynamic library for SimEvents. The error message indicates that there is a missing symbol, which might suggest a corrupted installation or an issue with the library files.
This might have occurred due to the interruption of the simulation in fast reload mode. To fix this issue, you would probably need to do a clean installation of the latest version of MATLAB. However, before proceeding with that, you could try the following steps to resolve the problem:
If the above steps don't yield a solution, you might find it necessary to carry out a clean MATLAB installation. Guidance for a clean installation process can be found at the following MATLAB Answer:
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!