Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor
Return information of the specified data interface
dataInterface = getDataInterfaces(codeDescObj, dataInterfaceName)
returns the type of data, SID, graphical name, timing, implementation, and variant
information on the data interface that dataInterface
= getDataInterfaces(codeDescObj
, dataInterfaceName
)dataInterfaceName
specifies.
Build the model.
rtwbuild('rtwdemo_comments')
Create a coder.codedescriptor.CodeDescriptor
object for the
required
model.
codeDescObj = coder.getCodeDescriptor('rtwdemo_comments')
Return a list of all data interface types in the generated code.
dataInterfaceTypes = getDataInterfaceTypes(codeDescObj)
dataInterfaceTypes
has these
values:{'Inports' } {'Outports' } {'Parameters' } {'ExternalParameterObjects'}
Return properties of Inport blocks in the generated code.
dataInterface = getDataInterfaces(codeDescObj, 'Inports')
dataInterface
is an array of coder.descriptor.DataInterface
objects. Obtain
the details of the first Inport block of the model by accessing the first
location in the
array.dataInterface(1)
coder.descriptor.DataInterface
object with properties
is
returned.Type: [1×1 coder.descriptor.types.Double] SID: 'rtwdemo_comments:1' GraphicalName: 'In1' VariantInfo: [0×0 coder.descriptor.VariantInfo] Implementation: [1×1 coder.descriptor.StructExpression] Timing: [1×1 coder.descriptor.TimingInterface]
coder.codedescriptor.CodeDescriptor
| coder.descriptor.DataInterface
| getAllDataInterfaceTypes
| getDataInterfaceTypes