Main Content

模型保护

创建一个用于仿真和代码生成的受保护模型,以便与第三方共享。

当您要与第三方共享模型而不暴露其内容时,请保护模型。模型保护过程编译模型并在模型引用中打包派生的工件。对于受保护模型,您可以:

  • 选择模型的可选功能,例如仿真、代码生成和查看模型的只读视图。

  • (可选)使用密码保护支持的功能。

  • (可选)允许接收者调节受保护模型的仿真参数。

  • 指定要在模型中包含的生成代码的类型,如经过混淆处理的代码或编译的代码。

  • 创建一个工程,其中包含框架模型、受保护模型和使用受保护模型所需的文件。

  • 对受保护模型进行数字签名。收件人可以验证该模型是否由您创建,并且在您签名后是否被更改过。

对象

Simulink.ModelReference.ProtectedModel.HookInfoFiles and exported symbols generated by creation of protected model
Simulink.ProtectedModel.CallbackCallback code that executes in response to protected model events
Simulink.ProtectedModel.CallbackInfoProtected model information for use in callbacks

函数

Simulink.ModelReference.protectObscure referenced model contents to hide intellectual property
Simulink.ModelReference.modifyProtectedModel修改现有受保护模型
Simulink.ModelReference.ProtectedModel.setPasswordForCertificateProvide password for digital certificate
Simulink.ModelReference.ProtectedModel.setPasswordForCodeGenerationAdd or provide encryption password for code generation from protected model
Simulink.ModelReference.ProtectedModel.setPasswordForModifyAdd or provide password for modifying protected model
Simulink.ModelReference.ProtectedModel.setPasswordForSimulationAdd or provide encryption password for simulation of protected model
Simulink.ModelReference.ProtectedModel.setPasswordForViewAdd or provide encryption password for read-only view of protected model
Simulink.ModelReference.ProtectedModel.clearPasswordsClear cached passwords for protected models
Simulink.ModelReference.ProtectedModel.clearPasswordsForModelClear cached passwords for a protected model
Simulink.ProtectedModel.addTargetAdd code generation support for current target to protected model
Simulink.ProtectedModel.getCallbackInfoGet Simulink.ProtectedModel.CallbackInfo object for use by callbacks
Simulink.ProtectedModel.getConfigSetGet configuration set for current protected model target or for specified target
Simulink.ProtectedModel.getCurrentTargetGet current protected model target
Simulink.ProtectedModel.getSupportedTargetsGet list of targets that protected model supports
Simulink.ProtectedModel.openOpen protected model
Simulink.ProtectedModel.removeTargetRemove support for specified target from protected model
Simulink.ProtectedModel.setCurrentTargetConfigure protected model to use specified target
Simulink.ProtectedModel.signAttach digital signature to protected model

主题