Main Content
getDataInterfaceTypes
Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor
Return data interface types in the generated code
Syntax
dataInterfaceTypes = getDataInterfaceTypes(codeDescObj)
Description
returns a list of the data interface types in the generated code. To get a list of the
available data interfaces, call dataInterfaceTypes
= getDataInterfaceTypes(codeDescObj
)getAllDataInterfaceTypes()
.
Input Arguments
Output Arguments
Examples
Build the model.
openExample('CounterModel.slx') slbuild('CounterModel')
Create a
coder.codedescriptor.CodeDescriptor
object for the required model.codeDescObj = coder.getCodeDescriptor('CounterModel')
Return a list of data interface types in the generated code.
dataInterfaceTypes = getDataInterfaceTypes(codeDescObj)
dataInterfaceTypes
has these values for modelCounterModel
:{'Inports' } {'Outports' } {'InternalData' }
Version History
Introduced in R2018a