Simulink Crashes once simulation starts

7 views (last 30 days)
bakr bagaber
bakr bagaber on 5 Jul 2016
Answered: Guillermo on 4 Apr 2024 at 6:46
I have a smulink model in which it has a PLECS circuit, when I open the model I get those warning in MATLAB Consol:
Warning: Undefined variable "SlCovCC" or class "SlCovCC.ConfigComp".
> In openmdl (line 12)
In openslx (line 9)
In open (line 158)
In uiopen (line 167)
Warning: Undefined variable "SlCovCC" or class "SlCovCC.ConfigComp".
> In Simulink.Preferences/updateConfigSetCopy
In Simulink.Preferences/getInstance
In slinstallprefs (line 18)
In simulinkrc (line 62)
In openmdl (line 12)
In openslx (line 9)
In open (line 158)
In uiopen (line 167)
Warning: Undefined variable "simscape" or class "simscape.modeladvisor.internal.define_checks".
> In slCustomizer/callAll
In slCustomizer/refresh
In slCustomizer.staticRefresh
In sl_refresh_customizations (line 18)
In slcustomize (line 4)
In simulinkrc (line 72)
In openmdl (line 12)
In openslx (line 9)
In open (line 158)
In uiopen (line 167)
When I run simulate MATLAB instantly crashes and closes.
It maybe worth mentioning that I'm currently running MATLAB R2016a 64X, and the problem came after installing MATLAB R2014b in parallel with the other version. I tried uninstalling both versions and installing the R2016a version again but the problem persists.
Do you have any idea how to solve such problem?

Answers (2)

Maglax
Maglax on 1 Feb 2017
I had the same issue, which was solved when I removed a copy of "pathdef.m" from my ~/Documents/MATLAB/ Directory.

Guillermo
Guillermo on 4 Apr 2024 at 6:46
Same problem for me.
It was solved by deleting simulink cache and restarting matlab (tbh, not sure if both were the solution of the problem or only one).

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!