フィルターのクリア

Release a toolbox license when it has been used in a GUI

4 ビュー (過去 30 日間)
Jakob
Jakob 2016 年 10 月 3 日
回答済み: Jakob 2016 年 10 月 4 日
We have a shared network license setup. In this environment we have multible matlab licenses but only one license for the curvefit toolbox.
The problem is that I have a made a GUI that use curvefit toolbox. The GUI use the curvefit license when I press a button in the GUI. The issue is that the GUI does not release the license, which means that the GUI keeps the license locked until the GUI is closed. Is there a way to release the license using some code in the GUI .m file?

採用された回答

Jakob
Jakob 2016 年 10 月 4 日
I got the official answer from Mathworks: "Toolbox license keys cannot be returned without exiting MATLAB. The Toolbox license keys get checked back in when the main MATLAB session is ended. Each time MATLAB is launched, a MATLAB license key is checked out from the pool of available licenses. Likewise, if a function from a MATLAB toolbox is called, a license key for that toolbox is checked out."

その他の回答 (1 件)

David Barry
David Barry 2016 年 10 月 3 日
No I do not think this is possible. The license would only be returned either when the user closes down MATLAB or after a certain period of inactivity. Standard FlexLM behaviour I think. You should contact MathWorks tech support for absolute confirmation of this though.
You could always use the code below if you wanted to throw some cleaner errors on startup if a license is not available.
license('test', 'Curve_Fitting_Toolbox')

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by