How to return/release license from Matlab programatically

7 次查看(过去 30 天)
I have a server license for PCI Geomatica Application, which includes python libraries. I need to run a python script from matlab which uses some libraries/modules from this PCI application. Apparently, calling these python libraries/modules from matlab is the same as opening the actual application and the license gets checked out by matlab and the only way to return the server license so someone else can use the same libraries or application is to completely close and exit matlab.
Is there some command or something i can add to my code that will release this license so that the person running my python-calling matlab function wont have to exit their entire matlab to release the license? I cant find anything online and rehash/clear dont work.
Any help would be greatly appreciated

回答(1 个)

Ganesh Gudipati
Ganesh Gudipati 2022-3-4
Hi right now there is no such function in MATLAB that would release the license automatically.
As a possible workaround, I would suggest creating the application as a standalone executable file, so that others can run your application independent of MATLAB.
You can refer to Creating Stand alone application MathWorks Documentation page to learn more on creating stand-alone application from MATLAB.
You can contact Support team for more information on Licenses.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by