getAllDataInterfaceTypes
Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor
Return data interface types
Syntax
allDataInterfaceTypes = getAllDataInterfaceTypes(codeDescObj)
Description
returns a list of the data interface types. This list is not specific to
any model.allDataInterfaceTypes
= getAllDataInterfaceTypes(codeDescObj
)
Input Arguments
Output Arguments
Examples
Create a coder.codedescriptor.CodeDescriptor
object for the
required model that is built, then list the available data interface types.
Open the model.
openExample(‘CustomCodeComments’)
Build the model.
slbuild('CustomCodeComments')
Create a
coder.codedescriptor.CodeDescriptor
object for the required model.codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
Return a list of available data interface types.
allDataInterfaceTypes = getAllDataInterfaceTypes(codeDescObj)
allDataInterfaceTypes
has these values:{'Inports' } {'Outports' } {'Parameters' } {'GlobalDataStores' } {'SharedLocalDataStores'} {'ExternalParameterObjects' } {'ModelParameters' } {'InternalData' }
Inports
andOutports
represent root-level inports and outports, not the inports and outports of subsystems.Parameters
includes all parameters in the model.ExternalParameterObjects
andModelParameters
are subsets ofParameters
.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 Data Code Interface Configuration for Model Interface Elements.
Version History
Introduced in R2018a