Simulink.ProtectedModel.getCurrentTarget
Get current protected model target
Description
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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015a