Matlab borrow products for simulink code generation

I'm using Matlab enterprise license and need to borrow products/license to work in case internet connection is not available.
When there is a internet connection, everything works fine. But when I go to offline, I have an issue with the code generation feature in Simulink. Although I have borrowed several products (please see the list in attached screenshot), still I don't have the code generation option in Simulink. Does anyone know which toolbox/license should be also involved and borrowed?
Thanks a lot!

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 2 月 17 日

0 投票

Go through your tasks when there is an internet connection, then run license('inuse') to find out what are needed. You may also utilize license('test'), license('checkout')

3 件のコメント

Longwen Qin
Longwen Qin 2020 年 2 月 17 日
Hello Fangjun,
thanks a lot for your tips.
When I generated the code with internet connection and run license('inuse'), it shows matlab, matlab_coder, real-time_workshop, robotics_system_toolbox, rtw_embedded_coder, simulink, stateflow. I think all of these toolbox are actually already included in my borrow list,right? I attached here another screenshot here to show I even didn't have the option in Simulink for code generation when offline.
Thanks
Longwen Qin
Longwen Qin 2020 年 2 月 17 日
When I use "license checkout" offline to check the toolbox/licenses I borrowed, it appeares the following error, but for matlab, simulink, stateflow or robotics_system_toolbox I didn't get any error. That should be the reason why I don't have code generation option, since check license for matlab_coder, simulink_coder and embedded_coder are failed. Now my question is why I got these missing license error, even I already borrowed the licenses.
Fangjun Jiang
Fangjun Jiang 2020 年 2 月 18 日
I guess you shall double check to see if all the borrowed licenses are "borrowed" properly. Another tip is to run "ver -support", scroll to the most right, you can see the license number of each toolbox.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

質問済み:

2020 年 2 月 17 日

コメント済み:

2020 年 2 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by