sdo.setCheckBlockEnabled
Namespace: sdo
Enable or disable all check blocks in model
Description
sets the chk_blk_state
=
sdo.setCheckBlockEnabled(modelname
,state
)Enabled
parameter of all the check blocks in an open
Simulink® model to the specified value. The function returns the original value
of the Enabled
parameter of all the model check blocks.
Use this function to disable the check blocks (model verification blocks) in a model before running an optimization for the model. After optimization completes, you can restore the enabled state of the model check blocks by calling this function again. Use the output from the previous call as the second input for the function.
Examples
Input Arguments
Output Arguments
Alternatives
You can open each model verification block in a model and select or clear the Enable assertion check box.
Version History
Introduced in R2012b