Borrar filtros
Borrar filtros

cannot open Simulink - MATLAB R2018b

4 visualizaciones (últimos 30 días)
Ying Bai
Ying Bai el 16 de Oct. de 2018
Respondida: Sohan Lal el 24 de Feb. de 2021
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

Respuestas (1)

Sohan Lal
Sohan Lal el 24 de Feb. de 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:

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by