When you want to share a model with a third party without revealing its contents, protect the model. The model protection process compiles the model and packages the derived artifacts in a protected model file. For a protected model, you can:
Select optional functionalities for the model, such as simulation, code generation, and viewing a read-only view of the model.
Optionally password-protect the supported functionalities.
Optionally allow the recipient to tune parameters for simulation of the protected model.
Specify what type of generated code to include in the model, such as obfuscated code or compiled code.
Create a project that contains a harness model, the protected model, and the files required to use the protected model.
Digitally sign the protected model. The recipient can verify that the model was created by you and was not changed after you signed it.
Enable the third party to simulate the protected model in a later Simulink® release version depending on the functionalities that the model supports. See Reference Protected Models from Third Parties.
|Files and exported symbols generated by creation of protected model|
|Callback code that executes in response to protected model events|
|Protected model information for use in callbacks|
|Obscure referenced model contents to hide intellectual property|
|Modify existing protected model|
|Provide password for digital certificate|
|Add or provide encryption password for code generation from protected model|
|Add or provide password for modifying protected model|
|Add or provide encryption password for simulation of protected model|
|Add or provide encryption password for read-only view of protected model|
|Clear cached passwords for protected models|
|Clear cached passwords for a protected model|
|Add code generation support for current target to protected model|
|Get configuration set for current protected model target or for specified target|
|Get current protected model target|
|Get list of targets that protected model supports|
|Open protected model|
|Remove support for specified target from protected model|
|Configure protected model to use specified target|
|Attach digital signature to protected model|
- Sign a Protected Model
Attach a digital signature to your protected model.
- Package and Share Protected Models
Files to include in the protected model package.
- Specify Custom Obfuscators for Protected Models
Specify a post-processing function for files that the protected model creation process generates.
- Create Protected Models with Multiple Targets
Create a protected model that supports multiple code generation targets.
- Define Callbacks for Protected Models
Customize protected model behavior by defining callbacks.
- Best Practices for Creating Protected Models
Choose modeling patterns and protection options to allow the functionalities that you want your protected model to support.
- Test Protected Models
Test your protected model by comparing it to the original model.
- Protect Models to Conceal Contents
Protect a model when you want to share a model with a third party without revealing intellectual property.