How to avoid checking out a toolbox license at MATLAB startup to avoid blocking it for others who might need it more often

15 次查看(过去 30 天)
According to this question ( link ), there is no way to release a license other than exiting MATLAB.
But I would be thankful if you could help me figure a way to avoid checking out a concurrent license when I start MATLAB, because I don't need this license all the time, and don't want to block other users who might need it more often than I do.
Is there away or workaround to do that?
Thank you in advance.
Amr ESMAEIL Senior ADAS MBD Engineer at Visteon Electronics GmbH.

采纳的回答

Andreas Goser
Andreas Goser 2018-8-29
I am not sure if I fully understand this. Let me describe how it is supposed to work (and what I know some users try):
  • If you start MATLAB of a concurrent license, it checks out a MATLAB key only, not from toolboxes
  • The respective toolbox gets check out once you are actively using this toolboxes' functionality
  • Some user have created startup.m scripts to check out toolboxes using the 'license' command. In environment where license keys are difficult available, this is their countermeasure. However, it is better to address the underlying reason. Often it is new invest, but often it is simply a change towards a better suited license model.
  3 个评论
Andreas Goser
Andreas Goser 2018-8-31
A couple of comments and ideas:
I wonder if this happend with any model. Can you open a simple demo model, e.g. by typing "vdp" in the MATLAB Command Window?
If it is specific to your own model(s), then maybe somebody else but you working on the project as used model callbacks to actively check out a license. You could remove that. Let me know in case you need help to find out where to look.
Last not least, just because you see the "build" button, it does not mean Simulink Coder is checked out. It just means it is installed - equivalent to the "ver" command's output. You can run the "license('inuse')" command to find out what is actually checked out
Amr ESMAEIL
Amr ESMAEIL 2018-9-5
Hello Andreas, Thank you for your help and support. My apologies for late reply due to work load.
It turned out that the issue was with the startup.m script, it has contained a license('checkout', ...) command, which was causing this issue.
Just removing this line from the startup.m file fixed the problem. Many thanks!
BR, Amr

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by