Simulink.ProtectedModel.Callback
Callback code that executes in response to protected model events
Description
For a specific protected model functionality, the
Simulink.ProtectedModel.Callback
object specifies
code to execute in response to an event. The callback code can be a
character vector of MATLAB® commands or a MATLAB script.
When you create a protected model, to specify callbacks, call the Simulink.ModelReference.protect function with the
'Callbacks'
option. The value of this option is a
cell array of Simulink.ProtectedModel.Callback
objects.
Creation
Syntax
Description
Simulink.ProtectedModel.Callback(
creates a callback object for a specific protected
model functionality and event. The
Event
,AppliesTo
,CallbackText
)CallbackText
specifies
MATLAB commands to execute for the
callback.
Simulink.ProtectedModel.Callback(
creates a callback object for a specific protected
model functionality and event. The
Event
,AppliesTo
,callbackFile
)CallbackFileName
specifies a
MATLAB script to execute for the callback.
The script must be on the MATLAB path.
Properties
Object Functions
setOverrideBuild | Override protected model build |
Examples
Version History
Introduced in R2016a