coder.mapping.api.get
Description
returns the active code mappings for the specified model as object
coderMapObj
= coder.mapping.api.get(simulinkModel
)coderMapObj
. Code mappings associate model data elements with configurations for C or C++ code
generation. If a model has multiple code mappings, the active code mappings are the mappings
associated with the active system target file.
If code mappings do not exist, an error is generated. Simulink® creates a code mappings object when you open a coder app for the model. If you
have not opened a coder app for the model, you can invoke the coder.mapping.utils.create
function to create a code mappings object.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b
See Also
coder.mapping.api.CodeMapping
| coder.mapping.utils.create
| coder.mapping.api.CoderDictionary
| coder.mapping.api.CodeMappingCPP
(Embedded Coder)