How can I protect intellectual property in a Simulink’s subsystem which can only be used in the computer with specific MAC address?

2 ビュー (過去 30 日間)
I have two ideas to implement this.
1.Use a callback function, InitFcn, in one of the block under the protected model by model reference. The code in the InitFcn should identify the MAC address of the computer. If the address not match the license, stop the simulation.
2.Use a MATLAB Function block instead of callback function to implement the identify work.
However, I met some problems by using these two ideas.
1.The InitFcn cannot be used under either referenced model or the protected model.
2.The only two commands that I know to get the MAC address are
dos('ipconfig/all');
and
system('getmac')
Both dos and system command cannot used in MATLAB Function block.
Can someone please tell me how to handle this problem with any kinds of methods?
Thanks

回答 (1 件)

Sherman
Sherman 2016 年 6 月 7 日

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by