필터 지우기
필터 지우기

cannot open Simulink - MATLAB R2018b

조회 수: 4 (최근 30일)
Ying Bai
Ying Bai 2018년 10월 16일
답변: Sohan Lal 2021년 2월 24일
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

답변 (1개)

Sohan Lal
Sohan Lal 2021년 2월 24일
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:

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by