MATLAB Answers

Protecting a subsystem in simulink

18 views (last 30 days)
I am trying to protect a subsystem block from third party but they should be able to run the simulation without identifying the model. I tried this by referencing the model and then coding but again it is giving error.
Is there anyone can help me with step by step procedure to protect the model?

  0 Comments

Sign in to comment.

Accepted Answer

Joel Van Sickel
Joel Van Sickel on 5 Jan 2021
Hello Ashwini,
please use this page as a reference. If part of it doesn't work, please share the specific error message to get better help.
Regards,
Joel

  2 Comments

Ashwini  More
Ashwini More on 6 Jan 2021
Thanks Joel!
I tried with the code and protected model has created in current folder but it cannot be opened.
Another question I want to ask you that how can I attach this protected model into original one, or we can use protected model to run simulation?
here is the snap of the error
Joel Van Sickel
Joel Van Sickel on 6 Jan 2021
you should be able to replace the old model with the protected model and run the simulation. In that case, you will need to provide the protected model file (the .slxp), and that can be used instead of the original system. The error message makes sense if you were trying to open the protected model, since it wouldn't allow that.
If you have report generator, you can make a read only view: https://www.mathworks.com/help/simulink/slref/protected-models-for-model-reference.html
Regards,
Joel

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!