- 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
1 view (last 30 days)
Show older comments
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.
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 Comments
Answers (1)
Yash
on 18 Jan 2024
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 Comments
See Also
Categories
Find more on Discrete-Event Simulation 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!