Get current protected model target
returns
the target identifier for the target that is currently configured
for the protected model. At the start of a MATLAB® session, the
default current target is the last target added to the protected model.
Otherwise, the current target is the last target that you used. You
can change the current target using the currentTarget
= Simulink.ProtectedModel.getCurrentTarget(protectedModel
)Simulink.ProtectedModel.setCurrentTarget
function.
When building the model, the software changes the target to match the parent if the currently selected target does not match the target of the parent model.
Simulink.ModelReference.protect
| Simulink.ProtectedModel.addTarget
| Simulink.ProtectedModel.getConfigSet
| Simulink.ProtectedModel.getSupportedTargets
| Simulink.ProtectedModel.removeTarget
| Simulink.ProtectedModel.setCurrentTarget