Does MATLAB Compiler checkout toolbox licenses at compile-time?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 26 Feb 2016
Edited: MathWorks Support Team
on 19 Apr 2021
Does MATLAB Compiler checkout toolbox licenses at compile-time?
Accepted Answer
MathWorks Support Team
on 4 May 2016
Edited: MathWorks Support Team
on 4 May 2016
As of MATLAB R2016a, MATLAB Compiler will now check out licenses for toolboxes used in the code you compile. This means that if you compile code in MATLAB using MATLAB Compiler, any functions which require a license for a particular toolbox to run will cause the required toolbox to be checked out at compile-time.
Please note that this applies to compilation performed using the standalone mcc command from the system command prompt as well. Calling mcc from the system command prompt reserves the MATLAB Compiler license for 30 minutes after it is called, and as of R2016a it also reserves any relevant toolbox seats for the same duration. Calling mcc from within the MATLAB environment does not cause any license seats to linger, either for MATLAB Compiler itself or toolboxes required for compilation.
In MATLAB releases R2015b and earlier, toolbox checkouts are not performed when compiling code which requires a license for one or more toolboxes.
3 Comments
Walter Roberson
on 7 Mar 2016
Edited: MathWorks Support Team
on 19 Apr 2021
If you are working with Concurrent licenses then other people might be wanting to use the license, but would now be prevented for a time. See for example the recent Question here
Walter Roberson
on 28 Mar 2016
Now I am confused. "Calling mcc from within the MATLAB environment _does not _cause any license seats to linger" sounds like this all does not apply if you compile from within MATLAB, but the "as well" part of "Please note that this applies to compilation performed using the standalone mcc command from the system command prompt as well" grammatically requires that it apply in at least two different circumstances but it looks like it only applies in one circumstance. So it is not clear whether this applies or not when you call the compiler within MATLAB.
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler SDK in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!