Main Content

getAllDataInterfaceTypes

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

Return data interface types

Syntax

allDataInterfaceTypes = getAllDataInterfaceTypes(codeDescObj)

Description

allDataInterfaceTypes = getAllDataInterfaceTypes(codeDescObj) returns a list of the data interface types. This list is not specific to any model.

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 available data interface types.

Examples

Create a coder.codedescriptor.CodeDescriptor object for the required model that is built, then list the available data interface types.

  1. Build the model.

    slbuild('rtwdemo_comments')

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

    codeDescObj = coder.getCodeDescriptor('rtwdemo_comments')
    

  3. Return a list of available data interface types.

    allDataInterfaceTypes = getAllDataInterfaceTypes(codeDescObj)

    allDataInterfaceTypes has these values:

        {'Inports'              }
        {'Outports'             }
        {'Parameters'           }
        {'GlobalDataStores'     }
        {'SharedLocalDataStores'}
        {'ExternalParameterObjects'     }
        {'ModelParameters'      }
        {'InternalData'         }
    In a model, there can be ExternalParameterObjects and/or LocalParameters. The data interface type Parameters consist of a consolidated list of both types of parameters.

Introduced in R2018a