Create harness model that provides isolated environment for testing protected model
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'
to
true
.
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.