Main Content
Simulink.ProtectedModel.setCurrentTarget
Configure protected model to use specified target
Description
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.
Examples
Input Arguments
Version History
Introduced in R2015a