Simulink.ProtectedModel.createHarness
Create harness model that provides isolated environment for testing protected model
Since R2020b
Syntax
Description
Examples
Input Arguments
Output Arguments
Alternative Functionality
If you have a Simulink® Coder™ or HDL Coder™ license, create a harness model as part of the model protection process by using one of these options:
In the Create Protected Model dialog box, set Contents to
Protected model (.slxp) and dependencies in a project
, or select Create harness model for protected model.Using the
Simulink.ModelReference.protect
(Simulink Coder), set'Project'
or'Harness'
totrue
.
When you create the harness model as part of the model protection process, you have more information to provide the harness model. Without this information, you might not be able to create a harness model for the protected model.
Version History
Introduced in R2020b