Why does Simulink crash when opening a model with LM_LICENSE_FILE environment variable set?
조회 수: 32 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2022년 11월 3일
편집: MathWorks Support Team
2022년 11월 18일
Why does Simulink crash when opening a model with LM_LICENSE_FILE environment variable set?
채택된 답변
MathWorks Support Team
2024년 1월 18일
If you are experiencing a crash when opening a blank model in Simulink it might be caused by the enviroment variable LM_LICENSE_FILE being set on your machine for another vendors software, such as Xilinx or Cadence. In order to confirm LM_LICENSE_FILE is causing the crash you can either try unsetting it temporarily or use a -c startup flag to bypass MathWorks products from reading the environment variable.
Launch with -c:
"C:\Program Files\MATLAB\R2022a\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2022a\licenses\network.lic"
The recommended long term work around is to use the vendor specific environment variable to point to a license manager for all software instead of LM_LICENSE_FILE. For example, the MathWorks software vendor specific environment variable is:
MLM_LICENSE_FILE = "C:\Program Files\MATLAB\R2022a\licenses\network.lic"
OR
MLM_LICENSE_FILE = port@host
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!