Clear Filters
Clear Filters

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

2 views (last 30 days)
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

Answers (1)

Sherman
Sherman on 7 Jun 2016

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!