Main Content

getDataInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Namespace: 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.

    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 data interface types in the generated code.

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

Version History

Introduced in R2018a