getFunctionInterfaceTypes
Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor
Return function interface types in the generated code
Syntax
functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)
Description
returns a list of the function interface types in the generated code. To get a list of
the available function interfaces, call
functionInterfaceTypes
= getFunctionInterfaceTypes(codeDescObj
)getAllFunctionInterfaceTypes()
.
Input Arguments
Output Arguments
Examples
Build the model.
openExample('CounterModel.slx') slbuild('CounterModel')
Create a
coder.codedescriptor.CodeDescriptor
object for the required model.codeDescObj = coder.getCodeDescriptor('CounterModel')
Return a list of function interface types in the generated code.
functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)
functionInterfaceTypes
has these values for model
CounterModel
:
{'Initialize'} {'Output' }
Version History
Introduced in R2018a