Main Content

setCheckErrorSeverity

Set severity of check failure

Description

Use the setCheckErrorSeverity(ma,value) function to set the check error severity for the currently running check. Only the callback function of a check can invoke this function.

This function enables you to access custom checks that you create by using the Model Advisor customization API, an optional feature that is available with Simulink® Check™ software. For more information, see Define Custom Model Advisor Checks (Simulink Check).

Input Arguments

collapse all

Simulink.ModelAdvisor object for which you want to set the check error severity for the currently running check.

A value of 0 indicates a warning check result. A value of 1 indicates a failed check result.

Version History

Introduced in R2006a