Target Language Compiler    

Data and Control Port Defaults

In the event that DataInputPort, HiddenDataInputPort, ControlInputPort, DataOutputPort, or HiddenDataOutputPort values are not provided in a block data record, the default values are used as provided by the following 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-18: Model.rtw Data and Control Input Port Defaults 
Variable/Record Name
Description
DataInputPortDefaults {
     or
HiddenDataInputPortDefaults {

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.

Note, this record is duplicated and written as HiddenDataInputPortDefaults for the nonvirtual inport blocks which have HiddenDataInputPort records corresponding to their source.

  RecordType

DataInputPort

  SignalSrc
[]: See Signal Connections for information on use of this field.
  SignalOffset
[0]: See Signal Connections for information on use of this field.
  Width

1

  DataTypeIdx

0

  SystemToCall

[-1, -1] ([systemIdx, callSiteIdx] where -1 means no system to call.)

  ComplexSignal

no

  FrameData

no

  RecurseOnInput

0 (used for expression folding)

  HaveGround

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.

  AllowScalarExpandedExpr

0 (used for expression folding).

}

ControlInputPortDefaults {
    or
Hidden
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.

  RecordType

ControlInputPort

  SignalSrc
[]: See Signal Connections for information on use of this field.
  SignalOffset
[0]: See Signal Connections for information on use of this field.
  Width

1

  DataTypeIdx

0

  ComplexSignal

no

  DirectFeedThrough

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

  FrameData

no

  RecurseOnInput

0

  HaveGround

no

  DirectFeedThrough

yes

  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.

  RecordType

DataOutputPort

  SignalSrc

[]

  SignalOffset

[0]

  Width

1

  DataTypeIdx

0

  ComplexSignal

no

  OutputExpression

0

  TrivialOutputExpression

0

  FrameData

no

  Dimensions

[-1, -1]

}


  Parameter Record Defaults Model Parameters Record