sldvcompat
R2026bCheck model compatibility with Simulink Design Verifier analysis
Syntax
Description
[
checks the compatibility of the model with Simulink
Design Verifier. If status,errmsgs] = sldvcompat(model,options,showUI,startCov)showUI is true, errors
appear in the Diagnostic Viewer. Otherwise, errors appear at the MATLAB® command line. The analysis ignores all model coverage objectives
satisfied in startCov.
Examples
Input Arguments
Output Arguments
Limitations
sldvcompatdetects known incompatibility patterns but does not guarantee full coverage.For a complete list of unsupported constructs and model configurations, see Unsupported Simulink Blocks in Analysis.
More About
Tips
Run
sldvcompatbefore callingsldvrunwhen you have a complex or large model.The model must be open in Simulink before calling
sldvcompat. An error occurs if the model is not loaded.Running
sldvcompatbuilds or refreshes the internal model representation used by subsequent Simulink Design Verifier analysis. After a successfulsldvcompatcall,sldvrunshould start analysis faster because the model representation is already current. For more information, see Set Model Representation Build Options.sldvcompatdoes not modify the model structure, parameters, or saved state. It does not write output files to disk.Only atomic subsystems with Is Atomic enabled can be checked for compatibility directly. Nonatomic subsystems must be checked as part of the containing model.
Alternatives
To check if a model is compatible with Simulink Design Verifier, on the Design Verifier tab, in the Analyze section, click Check Compatibility.
To check compatibility of a Subsystem, right-click the
Subsystem and add the Design Verifier app options to the menu by
pointing to Select Apps and clicking the Design Verifier button
. Then, from the Design Verifier app menu, click the
Check Subsystem Compatibility button
.