MATLAB Answers

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

21 views (last 30 days)
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.


Sign in to comment.

Accepted Answer

Andreas Goser
Andreas Goser on 29 Aug 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.


Amr ESMAEIL on 31 Aug 2018
Thank you Andreas for the answer, I understand now how it is supposed to work.
But I still need to figure out a way to workaround the issue I'm facing.
Let explain more:
  • The issue is we have a concurrent license for "Simulink Coder", and whenever I start MATLAB or maybe whenever I start Simulink by just opening any Simulink model, the Simulink Coder is checked out automatically and I can observe the "build" button in the simulink model menu bar.
  • Noticing that I don't use the command "license" at the startup.m file
So how to stop checking out the Simulink Coder license automatically whenever I start MATLAB/Simulink?
I just want to check it out manually only when needed to give chance to my work colleagues using it when they need it, instead of blocking them or make them come and ask me to exit MATLAB in order to allow them to check the Simulnk coder license.
Andreas Goser
Andreas Goser on 31 Aug 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 on 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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by