sldvrun
R2026bRun Simulink Design Verifier analysis on model
Syntax
Description
runs Simulink®
Design Verifier™ analysis on the model using its saved configuration settings or the
active configuration set. Use this to generate test cases for model coverage,
identify design errors by generating counterexamples, or verify model
properties.status = sldvrun
Examples
Input Arguments
Output Arguments
Limitations
Continuous-time models with stiff ODE solvers (such as
ode15s) may need solver reconfiguration or subsystem extraction to enable analysis. Analysis only supports fixed-step solver configuration.Models containing variable-size signals are not supported and cause the function to return a
statusof0. Use block replacement to stub out blocks generating variable-size signals, or restructure the model. For a complete list of unsupported blocks, see Unsupported Simulink Blocks in Analysis.S-functions without a TLC file or without a registered block replacement rule are flagged as incompatible. Use
opts.BlockReplacement == "on"with a replacement rule, or usesldvextractto isolate the analysis scope.
For more information, see Limitations of Simulink Design Verifier for Simulink Software Features.
More About
Tips
Run
sldvcompatbefore callingsldvrunfor large and complex models.sldvrunon an incompatible model wastes solver time and produces less actionable errors.The model must be open in Simulink before calling
sldvrun. An error occurs if the model is not loaded.Keep
opts.TestSuiteOptimizationset to"Auto". Other values such as"IndividualObjectives"typically decide fewer objectives in practice.sldvrundoes not modify the original model structure or parameters. Analysis artifacts are written to the directory specified byopts.OutputDir(default:sldv_output/$ModelName$).
Alternatives
To run an analysis with Simulink Design Verifier, on the Design Verifier tab, in the Mode section, use any of these options:
Select Design Error Detection, then click Detect Design Errors.
Select Test Generation, then click Generate Tests.
Select Property Proving, then click Prove Properties.