Table A-11: Model.rtw Block I/O Information
Variable/Record Name
|
Description
|
BlockOutputs {
|
List of block output signals in the block diagram.
|
BlockOutputDefaults {
|
|
TestPoint
|
no : The default is that this signal has not been marked as a signal of interest in your model (see signal properties dialog).
|
StorageClass
|
Auto : The default value specifies that Real-Time Workshop decides where to declare this signal.
|
StorageTypeQualifier
|
"" : The default type qualifier is empty.
|
IdentiferScope
|
"top-level" : The default is to declare the block output signal in the global block I/O vector.
|
Invariant
|
no: The default is that this signal has a non-constant sample time and change during execution.
|
InitialValue
|
[]: The default initial value is empty for non-invariant signals.
|
DataTypeIdx
|
0: The default data type is real_T .
|
ComplexSignal
|
no: The default is a non-complex real valued signal.
|
SigSrc
|
[]: The default source is nonexistent for case of multiple sources that is created via reused signals.
|
SigLabel
|
"" : No signal label on the line.
|
SigConnected
|
all : All destination elements of the signal are connected to other nonvirtual blocks or root outports.
|
}
|
|
ReusedBlockOutputDefaults
|
{
|
SigLabel
|
"" : No signal label on the line.
|
SigConnected
|
all : All destination elements of signal are connected to other nonvirtual blocks or root outports.
|
}
|
|
MergedBlockOutputDefaults
|
{
|
SigLabel
|
"" : No signal label on the line.
|
SigConnected
|
all : All destination elements of signal are connected to other nonvirtual blocks or root outports.
|
}
|
|
NumBlockOutputs
|
Number of data output port signals.
|
BlockOutput {
|
One record for each data output signal.
|
Identifier
|
Unique variable name across all block outputs.
|
SigIdx
|
[ blockIOVectorIndex , signalWidth ] .
|
TestPoint
|
yes . Only written when this signal has been marked as a test point in the block diagram. Test point block outputs are always in the global scope ("top-level" ).
|
StorageClass
|
Only written if either "ExportedGlobal", "ImportedExtern" or "ImportedExternPointer" . This setting determines how this signal is declared.
|
StorageTypeQualifier
|
Only written if non-empty (e.g., "const" or something similar).
|
IdentifierScope
|
"fcn-level" : Only written when the output signal is local to a function. The default (above) is "top-level" .
|
Invariant
|
yes : Only written when this block output cannot change during execution. For example, the output of a Width block and the output of a Constant block is invariant if InlineParameters=1.
|
InitialValue
|
Non-empty vector that is only written when Invariant is yes and the data type of the block output signal is a built-in data type.
|
DataTypeIdx
|
Only written when data is non-real_T (i.e., non-zero). This is the index in to the data type table that identifies this signals data type.
|
ComplexSignal
|
yes : Only written if this signal is complex.
|
SigSrc
|
[ systemIndex , blockIndex , outputPortIndex ] .
|
SigLabel
|
Signal label entered by user. Only written if non-empty ("" ).
|
SigConnected
|
Only written if one or more elements are not connected to destination non-virtual or root outport blocks. In this case it will be none if no elements are connected or a vector of length signalWidth where each element is either a 1 or 0 indicating whether or not the corresponding output signal is connected.
|
NumMergedBlockOutputs
|
Number of MergedBlockOutput records. These occur when Merge blocks exist in your model. The number of these records will equal the number of merge block outputs in your model.
|
MergedBlockOutput {
|
Only written if the BlockOutput record corresponds to a Merge block. In this case, the number of MergedBlockOutput records is equal to the number of input ports on the Merge block.
|
Identifer
|
Unique variable name across all block outputs.
|
SigSrc
|
[ systemIndex , blockIndex , outputPortIndex ] .
|
SigLabel
|
Signal label entered by user. Only written if nonempty ("" ).
|
}
|
|
NumReusedBlockOutputs
|
Number of ReusedBlockOutput records.
|
ReusedBlockOutput {
|
Only written when this BlockOutput record is being reused by multiple blocks. There is one record for each block output port that is reused by this BlockOutput record.
|
Identifer
|
Unique variable name across all block outputs.
|
SigSrc
|
[ systemIndex , blockIndex , outputPortIndex ] .
|
SigLabel
|
Signal label entered by user. Only written if non-empty ("" ).
|
MergedBlockOutput {
|
Only written if this ReusedBlockOutput record corresponds to a Merge block. In this case, the number of MergedBlockOutput records is equal to the number of input ports on the Merge block. See above for contents of the MergedBlockOutput records.
|
}
|
|
}
|
|
ObjectProperties {
|
Only written if a Unified Data Repository object is attached to the output signal and the output signal is not being reused.
|
...
|
Fields in the object properties record depend upon the contents of the object.
|
}
|
|
}
|
|
}
|
|
BlockOutputsMap
|
Matrix of dimension (NumBlockSignals,2) , which gives a mapping from a block I/O vector index (Bi ) into the BlockOutputs structure: [ blockOutputsIndex , signalOffset ] . Only written if NumBlockSignals > 0 .
|