coder.codedescriptor.CodeDescriptor - Return information about generated code - MATLAB (original) (raw)
Main Content
Namespace: coder.codedescriptor
Return information about generated code
Description
Create a coder.codedescriptor.CodeDescriptor
object to access all the methods defined within the code descriptor API. The coder.codedescriptor.CodeDescriptor
object describes the data interfaces, function interfaces, global data stores, local and global parameters in the generated code.
Creation
`codeDescObj` = coder.getCodeDescriptor(`model`)
creates a coder.codedescriptor.CodeDescriptor
object for the specified model.
`codeDescObj` = coder.getCodeDescriptor(`folder`)
creates a coder.codedescriptor.CodeDescriptor
object for the model in the build folder specified in folder
.
Properties
Name of the model for which the code descriptor object is invoked.
Example: 'CustomCodeComments'
Attributes:
Path of the build folder where the model is built.
Example: 'C:\Users\Desktop\Work\CustomCodeComments_ert_rtw'
Attributes:
Methods
Examples
- Open the model.
openExample(‘CustomCodeComments’) - Build the model.
slbuild('CustomCodeComments') - Create a
coder.codedescriptor.CodeDescriptor
object for the required model.
codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
ModelName: 'CustomCodeComments'
BuildDir: 'C:\Users\Desktop\Work\CustomCodeComments_ert_rtw' - Return a list of all available function interface types.
allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj)
{'Initialize'}
{'Output' }
{'Update' }
{'Terminate' }
Version History
Introduced in R2018a