Target Language Compiler    

Data and Control Port Defaults

In the event that DataInputPort, ControlInputPort, or DataOutputPort values are not provided in a block data record, then the default values are used as provided by these records. This includes information for data type index, complex signals, direct feed through, and a value for buffer destination ports (e.g., indicator for buffer reuse).

Table A-16: Model.rtw Data and Control Input Port Defaults 
Variable/Record Name
Description
DataInputPortDefaults {

Record for default values of block variables that aren't explicitly written in the block data input port records. The block data input port records only contain nondefault values for the following variables.

  DataTypeIdx

0

  ComplexSignal

no

  FrameData

no

  HaveGround

no

  SrcHasImportedExternPointer

no

  DirectFeedThrough

yes. Only written if the rtwgen option WriteBlockConnections has been specified as on.

  BufferDstPort

-1: Default is no output ports are reusing the corresponding input port buffer.

}

ControlInputPortDefaults {

Record for default values of block variables that aren't explicitly written in the block control (enable/trigger) input port records. The block control input port records only contain nondefault values for the following variables.

  DataTypeIdx

0

  ComplexSignal

no

  DirectFeedThrough

yes. Only written if the rtwgen option WriteBlockConnections has been specified as on.

  FrameData

no

  HaveGround

no

  SrcHasImportedExternPointer

no

  BufferDstPort

-1: Default is no output ports are reusing the corresponding input port buffer.

}

DataOutputPortDefaults {

Record for default values of block variables that aren't explicitly written in the block data output port records. The block data output port records only contain nondefault values for the following variables.

  FrameData

no

  Offset

-1

  Width

-1

  Dimensions

[-1, -1]

}


 Parameter Record Defaults Model Parameters Record