cannot open Simulink - MATLAB R2018b
8 views (last 30 days)
Show older comments
Warning: Undefined variable "configset" or class "configset.internal.data.MetaConfigSet.registerComponent". > In start_simulink (line 19)
ans =
'Undefined variable "connector" or class "connector.resetLocalePreference".'
Warning: Undefined variable "connector" or class "connector.ensureServiceOn". > In sltemplate.ui.StartPage/showWithFallback In sltemplate.ui.StartPage.show Error using sltemplate.ui.StartPage/showWithFallback Undefined function or variable 'slLibraryBrowser'.
Error in sltemplate.ui.StartPage.show
Warning: An error occurred trying to load the Simulink HMI engine. Possible reasons include pressing Ctrl+C or running MATLAB with the -nojvm option. Close and re-open any open any Simulink models to assure proper functioning. For proper functioning of Simulink HMI and the Simulation Data Inspector, the JVM is required. > In Simulink.HMI.slhmi In Simulink.HMI.slhmi
0 Comments
Answers (1)
Sohan Lal
on 24 Feb 2021
From the query, it seems you are facing this issue on launching Simulink. And I also assume that you are not using MATLAB with the -nojvm flag. That sort of problems could happen because of the path issue or if the cache is not clean. Before you modify anything, please take backup for the existing path definition by using below command on the MATLAB command prompt
>> which -all pathdef
After taking the backup, please run the following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
Following this step, please use MATLAB/ Simulink to see if the problem occurs again. If the problem is resolved, then you may want to save the new MATLAB search path by running the following command:
>> savepath
NOTE: This will remove any custom paths you may have created.
The following MATLAB Answers post is an additional resource on how to back them up:
Here is a resource on how nojvm flag affects MATLAB and Simulink:
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements 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!