sldvruncgvtest
Invoke Code Generation Verification (CGV) API and execute model
Syntax
Description
invokes the Code Generation Verification (CGV) API methods and
executes the cgvObject
= sldvruncgvtest(model
, dataFile
)model
by using
all the test cases in
dataFile
.
cgvObject
is a
cgv.CGV
object that
sldvruncgvtest
creates during the
execution of the model
.
sldvruncgvtest
sets the execution mode
for cgvObject
to'sim'
by
default.
Examples
Input Arguments
Output Arguments
Tips
To run sldvruncgvtest
, you must have Embedded Coder®.
If your model has parameters that are not configured for executing test cases
with the CGV API, sldvruncgvtest
reports warnings about
the invalid parameters. If you see these warnings, do one of the
following:
Modify the invalid parameters and rerun
sldvruncgvtest
.Set
allowCopyModel
inrunOpts
to betrue
and rerunsldvruncgvtest
.sldvruncgvtest
makes a copy of your model with the same configuration and invokes the CGV API.
Version History
Introduced in R2010b
See Also
cgv.CGV
(Embedded Coder) | sldvlogsignals
| sldvrun
| sldvruntest
| sldvruntestopts