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'         }
    Inports and Outports represent root-level inports and outports, not the inports and outports of subsystems.

    Parameters includes all parameters in the model. ExternalParameterObjects and ModelParameters are subsets of Parameters. ModelParameters represents parameters that you define within a model, such as parameters in the model workspace. ExternalParameterObjects represents parameters that you define in the base workspace or in a data dictionary.

    GlobalDataStores represents data stores that are defined by a signal object in the base workspace or in a data dictionary. SharedLocalDataStores represents Data Store Memory blocks that have the block parameter Share across model instances selected.

    InternalData represents data elements that are internal to the model, such as block output signals, discrete block states, data stores, and zero-crossing signals.

    For more information, see C Code Generation Configuration for Model Interface Elements.

Introduced in R2018a