Protecting dynamic masked subsystem
Show older comments
Hello, I am working with dynamic masked subsystem. I do not want to distribute my design/algorithm to the third party user. I did a search on the internet and on this forum, and come across 3 methods to protect the subsystems:
1. Control access to subsystem by setting 'NoReadOrWrite' permission on the subsystem. But this setting can be easily reverted by user.
2. Generate S-function for the subsystem. It appears to me that this method is not applicable to masked subsystem. Please correct me if I am wrong.
3. IP protection by creating .mdlp files. I was going through the steps described at http://www.mathworks.com/products/demos/simscape/PhysMod_Demo_IP_Protection/. When I converted my subsystem to model block (by right clicking the subsystem and choosing the option 'convert to model block') an error occurred saying that masked subsystem can not be converted to model.
Am I doing something wrong or there is any other way to protect the masked subsystems. Any pointers on this will bw very helpful.
Thanks Abhishek
Answers (2)
Kaustubha Govind
on 27 Feb 2012
0 votes
You might want to generate a protected model or S-function from an unmasked version of the subsystem, and then create the mask again over the generated, protected version?
2 Comments
Abhishek
on 28 Feb 2012
Kaustubha Govind
on 2 Apr 2012
Do you mean a Variant/Configurable subsystem? I'm not sure if model reference blocks support these - they probably inline the variant of the subsystem selected at compile-time. And yes, I believe Simulink Coder is in fact needed to generate protected referenced models.
Abhishek
on 1 Mar 2012
0 votes
1 Comment
Kaustubha Govind
on 2 Apr 2012
I think the port dimensions need to be fixed for referenced models, because code is generated for the underlying model. You could try running the referenced model in "Normal" mode and see if it allows for inherited port dimensions in that mode.
Categories
Find more on Large-Scale Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!