Why does Simulink crash when opening a model with LM_LICENSE_FILE environment variable set?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 3 Nov 2022
Edited: MathWorks Support Team
on 18 Nov 2022
Why does Simulink crash when opening a model with LM_LICENSE_FILE environment variable set?
Accepted Answer
MathWorks Support Team
on 18 Nov 2022
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 Comments
More Answers (0)
See Also
Categories
Find more on Manage Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!