Main Content

getDataInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor

Return data interface types in the generated code

Syntax

dataInterfaceTypes = getDataInterfaceTypes(codeDescObj)

Description

dataInterfaceTypes = getDataInterfaceTypes(codeDescObj) returns a list of the data interface types in the generated code. To get a list of the available data interfaces, call getAllDataInterfaceTypes().

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.

    rtwbuild('rtwdemo_counter')

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

    codeDescObj = coder.getCodeDescriptor('rtwdemo_counter')
    

  3. Return a list of data interface types in the generated code.

    dataInterfaceTypes = getDataInterfaceTypes(codeDescObj)
    dataInterfaceTypes has these values for model rtwdemo_counter:
        {'Inports'     }
        {'Outports'    }
        {'InternalData'    }

Introduced in R2018a