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 CenterFile Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by