When you receive a protected model, it might be included in a protected model package. The package could include additional files, such as a harness model and a MAT-file. A protected model file has an .slxp extension. A typical workflow for using a protected model in a simulation is:
If necessary, unpack the files according to any accompanying directions.
If there is a MAT-file containing workspace definitions, load that MAT-file.
If there is a harness model, copy the Model block referencing the protected model into your model.
If the protected model is password protected, then right-click the protected-model badge icon and select Authorize. Enter the required passwords, and then click OK.
If a protected model report was generated when the protected model was created, double-click the Model block to open it. In the Summary of the report, check that your Simulink® version and platform match the software and platform used to create the protected model.
Connect signals to the Model block that match its input and output port requirements.
Provide any needed model argument values. See Assign Model Argument Values.
There are also other ways to include the protected model into your model:
Use your own Model block rather than the Model block in the harness model.
Start with the harness model, add more constructs to it, and use it in your model.
Use the protected model as a variant in a Model Variant block, as described in Set Up Model Variants.
Apply a mask to the Model block that references the protected model. See Masking.
Configure a callback function, such as LoadFcn, to load the MAT-file automatically. See Callbacks for Customized Model Behavior.
Now you can simulate the model that includes the protected model. Because the protected model is set to Accelerator mode, the simulation produces the same outputs that it did when used in Accelerator mode in the source model.
The Web view is a read-only reference of the protected model. To view the Web view of a protected model, right-click the protected-model badge icon and select Show Web view. Hover over a block in the model Web view to show the parameter values. A Report Generator license is required to use the model Web view.
If the Web view is password protected, then right-click the protected-model badge icon and select Authorize. In the Model view box, enter the password, and then click OK.