analyze models for design errors -凯发k8网页登录

main content

analyze models for design errors

workflow for detecting design errors

to analyze your model for design errors, use the following workflow:

  1. verify that your model is compatible with simulink® design verifier™ software.

  2. if you have stateflow® objects in your model, in the configuration parameters dialog box, on the diagnostics > stateflow pane, set unreachable execution path to error.

  3. specify options that control how simulink design verifier detects design errors in your model.

  4. execute the simulink design verifier analysis.

  5. review the analysis results.

understand the analysis results

when you run a design error detection analysis, by default, the software highlights model objects in one of four colors so that the analysis results are easy to review.

model object highlighting coloranalysis results

green

both of the following:

  • the analysis proved the absence of dead logic.

  • the analysis proved the absence of errors for the other design error detection checks.

red

at least one of the following:

  • the analysis found dead logic.

  • the analysis found an error for one of the other design error detection checks.

orange

for at least one objective, the analysis could not determine if the model object has dead logic or one of the other design error detection errors. this situation can occur when:

  • the analysis times out.

  • the software cannot determine if an error occurred or not. this result is due to:

    • automatic stubbing; for more information, see .

    • limitations of the analysis engine.

gray

the model object was not part of the analysis.

steel blue

all objectives from this model object were excluded or justified using a filter files provided during the analysis.

the simulink design verifier results window initially displays a summary of the analysis results, as in the following example.

when you click an object in the model, additional details about the results for that object are displayed in the simulink design verifier results window.

tip

by default, the simulink design verifier results window is always the topmost visible window. to change that setting, click the icon and on the context menu, clear the check mark next to always on top.

review the latest analysis results in the results summary window

if you close the analysis results to fix the cause of the errors in your model, you might need to review the analysis results again. as long as your model remains unchanged, you can view the results of your most recent analysis results in the results summary window.

to view the latest results, on the design verifier tab, in the review results section, click results summary.

for any simulink design verifier analysis, from the results summary window, you can perform the following tasks:

  • open filter explorer.

  • highlight the analysis results on the model.

  • view tests in simulation data inspector.

  • generate a detailed analysis report.

  • create the harness model, or if the harness model already exists, open it.

    note

    if no objectives are falsified or satisfied, you cannot create the harness model.

  • export test cases to simulink test.

  • view the data file.

  • view the log file.

check for design errors using the model advisor

you can perform design error detection analysis from the model advisor, which is particularly useful if you need to perform other model checks. to analyze your model from the model advisor, follow this high-level workflow:

  1. specify options that control how simulink design verifier detects design errors in your model.

  2. open the model advisor.

  3. from the system hierarchy, select the model or model component you want to analyze

  4. expand the design error detection analysis items. look for simulink design verifier under either by product or by task.

  5. if you have not checked your model for compatibility, enable the compatibility check for simulink design verifier.

  6. select the design error detection checks you want to run.

  7. run the selected checks.

  8. review the analysis results.

related topics

    网站地图