Protecting dynamic masked subsystem
Ältere Kommentare anzeigen
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
Antworten (2)
Kaustubha Govind
am 27 Feb. 2012
0 Stimmen
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 Kommentare
Abhishek
am 28 Feb. 2012
Kaustubha Govind
am 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
am 1 Mär. 2012
0 Stimmen
1 Kommentar
Kaustubha Govind
am 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.
Kategorien
Mehr zu Large-Scale Modeling finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!