How can I check in (release) a license?

84 views (last 30 days)
I know I can use license('checkout','map_toolbox') to checkout a license. Is there a simple way to check a license back in (release it so others can use it) without closing your MATLAB session?
  2 Comments
Eric nestler
Eric nestler on 29 Jun 2015
So I have no idea why this answer would be accepted. It said nothing. Could Mathworks please say exactly why there is not symmetric call to license as license('checkin','matlab_coder')
That would be an acceptable answer to me. Closing Matlab is completely unacceptable. Thanks, Eric
Andreas Goser
Andreas Goser on 30 Jun 2015
You write "Could Mathworks please say...". If you expect a Mathworks employee speaking in behalf of the company in this technical user forum about a non technical topics, then you will be dissappointed. In case you have not yet spoken to your MathWorks Account manager, please do so.

Sign in to comment.

Accepted Answer

Andreas Goser
Andreas Goser on 22 Apr 2015
There is an article about this topic here.
But beside that, it would be important to know why closing MATLAB is not considered as an option. From my experience, some reasons are related to business topics and I'd suggest you reach out to your MathWorks account manager for the non-technical part of such a topic.
  1 Comment
Russ Duren
Russ Duren on 22 Apr 2015
Andreas. Thank you for answering my question.
You stated, “it would be important to know why closing MATLAB is not considered as an option.” The answer is more a matter of efficiency. Here is the problem:
1. My company shares a limited number of licenses for some of your toolboxes across multiple sites.
2. Often an engineer will use a toolbox function once in a MATLAB session and then the license is unavailable for the rest of the engineers for the rest of the workday.
3. One can look up who has the license checked out and request that they release it periodically, but that is very inefficient.
4. Many of the functions in question are only used during a small percentage of the session time. For example, the license may only be required during simulation or compilation (the latter for coder products). Most of the session time may be devoted to editing code or block diagrams and analyzing the results of simulation; tasks that do not require the license. If the license was only tied up during simulation/compilation and automatically released afterwards, this would not be a problem.
I have used many tools from other CAD vendors that only tie up a license during certain operations. The license is then automatically released for other engineers to use without requiring the original user to end their session or to manually release the license. Without mentioning company names, some examples include: licenses for FPGA synthesis, place and route, etc.; high-level synthesis compilers; software compilers; and HDL simulators. Products from four different companies come to mind quickly.
I realize that the MATLAB toolbox licenses can be made available (i.e. a workaround) by training engineers to:
1. Be aware of the limited number of licenses available for some toolboxes.
2. Know which functions/actions checkout a license.
3. Close and restart their MATLAB session after executing such a function, when they do not anticipate needing it for a certain time.
However, all of the above training and effort is inefficient and would be unnecessary if MATLAB were to do this automatically. I would like to see The Mathworks adopt this licensing policy/method.
The above comments are just my opinion and based on my knowledge. They do not necessarily represent the opinion of my company.
Russ

Sign in to comment.

More Answers (3)

Andreas Goser
Andreas Goser on 24 Apr 2015
Thank You Russ, some of those items indeed are related to non-technical business topics and are not a good topic for this technical forum. I will let the account manager for your company know of this thread.
  8 Comments
Walter Roberson
Walter Roberson on 20 Apr 2016
You were not using logic, you were using rhetoric.
The tanuki is from a photograph I took at a store near Kobe; it is not one of the famous versions.
Justin
Justin on 20 Apr 2016
Well if that's your only complaint then I guess I win. Thanks for the "free" win.
Did you get a chance to try their famous beef?

Sign in to comment.


Andreas Goser
Andreas Goser on 20 Apr 2016
Edited: Andreas Goser on 20 Apr 2016
Justin, if your contact record in this forum is still up to date: Your university - actually pretty much all universtities in your Bundesland - have purchased a license for all researchers and all students for use at university and at home and to my best knowledge all products. Here is a press release.
  1 Comment
Andreas Goser
Andreas Goser on 20 Apr 2016
And you have access to a larger MDCS license to speed up your code.

Sign in to comment.


Jay Jones
Jay Jones on 30 Aug 2016
You could use the flexlm license manager utility:
lmutil lmremove -c license.dat feature user host display
  1 Comment
Walter Roberson
Walter Roberson on 31 Aug 2016
It is against the Terms of Use to use lmremove or otherwise restarting the license manager to free up a license early (less than the 4 hour minimum license timeout that can be configured.)

Sign in to comment.

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!