Configure protected model to use specified target
Simulink.ProtectedModel.setCurrentTarget(
configures
the protected model to use the target that the target identifier specifies.protectedModel
, targetID
)
Note
If you include the protected model in a model reference hierarchy, the software tries to change the current target to match the target of the parent model. If the software cannot match the target of the parent, it reports an error.
Simulink.ModelReference.protect
| Simulink.ProtectedModel.addTarget
| Simulink.ProtectedModel.getConfigSet
| Simulink.ProtectedModel.getCurrentTarget
| Simulink.ProtectedModel.getSupportedTargets
| Simulink.ProtectedModel.removeTarget