Protecting a Simulink block with a password

I want to protect a Simulink block (subsystem masked) with a password, so that nobody can open the block or modify the initialization parameters included in the mask parameters.
On the other hand, can I protect the m-files I have?

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 28 de En. de 2011
Editada: John Kelly el 12 de Jun. de 2014

1 voto

You can protect your Simulink subsystem by one of three methods:
1) Control user access to subsystems
2) Generate an S-function
3) Create a protected model from your subsystem, that can then be referenced from users' models.
You can protect MATLAB-files by using pcode.

6 comentarios

Indira
Indira el 31 de En. de 2011
Hi Kaustubha,
What kind of protection does the pcode give?
Cause I've converted my m-files to p-files but I can see the same code in both.
Thanks a lot.
Kaustubha Govind
Kaustubha Govind el 1 de Feb. de 2011
The *.p file generated by pcode is of obscured form that is not human-readable. Did you use the "pcode" command?
Indira
Indira el 1 de Feb. de 2011
Yes, I've used "pcode" command, at moment I am using p-files. Hey your information helped me a lot, but I have another question... I've generated a s-function block that requires some data from m-file, how can I define some parameters to the block?...
Thanks =)
Kaustubha Govind
Kaustubha Govind el 2 de Feb. de 2011
Could you please post this as a new question? We'd like for questions to be easily found if another user looks for something similar. Thanks!
Indira
Indira el 2 de Feb. de 2011
Done!
stack programer
stack programer el 17 de Mayo de 2017
Editada: stack programer el 17 de Mayo de 2017
Great but for sdr soure it is not work

Iniciar sesión para comentar.

Más respuestas (1)

Senthilmurugan Mani
Senthilmurugan Mani el 8 de Jul. de 2019

1 voto

Could you pls explain about these three method more in detailed
You can protect your Simulink subsystem by one of three methods:
1) Control user access to subsystems
2) Generate an S-function
3) Create a protected model from your subsystem, that can then be referenced from users' models.
You can protect MATLAB-files by using pcode.
Thanks in Advance
By Senthil

Categorías

Más información sobre Schedule Model Components en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 28 de En. de 2011

Respondida:

el 8 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by