Main Content

getFunctionInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor

Return function interface types in the generated code

Syntax

functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)

Description

functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj) returns a list of the function interface types in the generated code. To get a list of the available function interfaces, call getAllFunctionInterfaceTypes().

Input Arguments

expand all

coder.codedescriptor.CodeDescriptor object for which you want to retrieve the information about generated code.

Output Arguments

expand all

A list of the data interface types in the generated code.

Examples

  1. Build the model.

    openExample('CounterModel.slx')
    slbuild('CounterModel')

  2. Create a coder.codedescriptor.CodeDescriptor object for the required model.

    codeDescObj = coder.getCodeDescriptor('CounterModel')
    

  3. 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