Filter löschen
Filter löschen

Simevents fails to run after using step-through

2 Ansichten (letzte 30 Tage)
Ben Freedman
Ben Freedman am 28 Feb. 2022
Beantwortet: Yash am 18 Jan. 2024
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

Antworten (1)

Yash
Yash am 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:
  • 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.
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!

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by