How can I protect the intellectual property of my Simulink model?

29 Ansichten (letzte 30 Tage)
I would like to distribute my Simulink model without exposing the underlying implementation to the third-party user receiving the model.
How can I protect the IP of my Simulink model? And what are the advantages and limitations of each of the methods?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 24 Okt. 2024
Bearbeitet: MathWorks Support Team am 24 Okt. 2024
You can use the following four approaches to protect the intellectual property of a Simulink model:
  1. Protected Model
  2. Shared Library
  3. Standalone FMU Export
  4. S-Function Target
  5. Read/Write Access for Subsystems
Note that for approaches 1, 2, 3 & 4 the receiving party must match the platform. For example, if a protected model has been created on Windows, it cannot be run by the third party if they use Linux or macOS.

1. Protected Model

The preferred way to share a Simulink model without revealing its contents is to use protected models. The third party receiving the protected model (.SLXP file) can reference it from their Simulink model, without being able to edit the contents. This feature is available from R2014a onwards. Note that creating a protected model requires a Simulink Coder license.
The protected model approach has many advantages:
  • Easy to use. The protected model offers a very familiar interface to someone used to working with model references.
  • AES-256 encryption can be applied to the file contents by enabling password protection.
  • If enabled by the author, the third party can generate code from the protected model.
  • The author can choose to share a read-only version (web view) of the protected model.
  • From R2018b onwards, protected models are forward compatible.
  • From R2020a onwards, you can attach a digital signature to a protected model.
For more information, see Protect Models to Conceal Contents.

2. Shared Library

Another recommended way is to use the shared library system target file (ert_shrlib.tlc) to generate a universal shared library (.DLL/.SO) for a model or subsystem. Note that creating a shared library requires an Embedded Coder license on top of a Simulink Coder license. The main advantage of this approach is that a shared library can be run in a system simulation outside of Simulink.

3. Standalone FMU Export

From R2020b, users can export an FMU from a model which creates a .fmu file consisting of a compiled binary of the customers model and a .XML file consisting of the interface (inputs, outputs and parameters). This option requires a Simulink Compiler license. The FMU is release agnostic but it is limited to simulation in the same environment it is generated in unless they compile the binary for other environments.  Please also note that the capability to generate code from a model containing an FMU is limited.

4. S-Function Target

In R2013b and earlier it was recommended to use the S-Function target to generate S-Function code from your model or subsystem and then build it into a MEX file. Note that generating such an S-Function also requires a Simulink Coder license. The main drawback compared to protected models is that the S-Function target has no built-in option to apply encryption. Additionally, Protected Models and Shared Libraries increase execution efficiency and facilitate code reuse, while MEX files built from S-function target code do not.

5. Read/Write Access for Subsystems

This is the least secure, but easiest method and requires no additional license or matching platform. By setting the read/write permissions in the Subsystem block parameters to 'NoReadOrWrite', no action will occur when a user double clicks on it. However, the permission can be changed by any user. This method deters editing rather than truly concealing the contents of the model.
For more information, see the section Specify Subsystem Read/Write Permissions.

    Weitere Antworten (0)

    Kategorien

    Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

    Produkte


    Version

    R2018a

    Community Treasure Hunt

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

    Start Hunting!

    Translated by