cgv.Config
Check and modify model configuration parameter values
Description
A code generation verification configuration (cgv.Config) supports checking and optionally modifying models for compatibility
with various modes of execution that use generated code, such as, Software-In-the-Loop (SIL)
or Processor-In-the-Loop (PIL).
To execute the model in the mode that you specify, you might need to make additional
modifications to the configuration parameter values or the model beyond those configured by
the cgv.Config object.
By default, cgv.Config modifies configuration parameter
values to the values that it recommends, but does not save the model. Alternatively, you can
use cgv.Config parameters to modify the default
specification. For more information, see the properties, ReportOnly and
SaveModel.
If you use cgv.Config to modify a model, do not use
referenced configuration sets in that model. If a model uses a referenced configuration set,
update the model with a copy of the configuration set, by using the Simulink.ConfigSetRef.getRefConfigSet method.
If you use cgv.Config on a model that executes a
callback function, the callback function might modify configuration parameter values each time
the model loads. The callback function might revert changes that cgv.Config made. If this change occurs, the model might not be set up for SIL or
PIL. For more information, see Customize Model Behavior with Callbacks.
Creation
creates a handle to a cfgObj = cgv.Config(model_name)cgv.Config object,
cfgObj, using default values for properties.
model_name is the name of the model that you are checking and
optionally configuring.
constructs the object using options, specified as parameter name and value pairs. Parameter
names and values are not case sensitive.cfgObj = cgv.Config(model_name, Name,
Value)
The cgv.Config function accepts these arguments:
- model_name
Name of the model that you are verifying.
- Name-Value Pair Arguments
Optional comma-separated pairs of
Name,Valuearguments, whereNameis an argument name or an property name andValueis the corresponding value.Namemust appear inside single quotes (''). You can specify several name-value pair arguments in a variety of orders, such asName1,Value1,…,NameN,ValueN.
Properties
Object Functions
configModel | Determine and change configuration parameter values |
displayReport | Display results of comparing configuration parameter values |
getReportData | Return results of comparing configuration parameter values |
Examples
Version History
Introduced in R2009b