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

30 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

Andreas Goser
Andreas Goser le 29 Août 2018
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 commentaires
Andreas Goser
Andreas Goser le 31 Août 2018
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 le 5 Sep 2018
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by