Main Content

verifyCheckResultStatus

Verify that a model passed or failed a set of checks

Description

Use the [success message]= verifyCheckResultStatus(ma, baseline, checkIDs) function to verify that a model has passed or failed a set of checks.

Before invoking the verifyCheckResultStatus function, run the checks that you specify with checkIDs. Then use the getCheckResultStatus function to obtain the boolean values for the baseline argument.

Input Arguments

collapse all

Simulink.ModelAdvisor object for which you want to verify that a set of checks passed.

Statuses from the most recent checks run that you specify by Check IDs.

Cell array of character vectors specifying the identifiers of Model Advisor checks that you want to verify have run.

Output Arguments

collapse all

Boolean value that indicates whether the statuses match the baseline. A value of 1 indicates that the statuses match. A value of 0 indicates that the statuses do not match the baseline.

Message indicating whether the function successfully verified the check result statuses.

Version History

Introduced in R2006a