Technical data
3
Writing Target Language Files
3-46
For example, the Gain block in this example is defined in the RTW file as:
Block {
Type Gain
Name "<Root>/Kp"
Identifier Kp
TID 0
RollRegions [0:99, 100, 101, 102:112]
NumDataInputPorts 1
.
.
.
Parameter {
Name "Gain"
Value [2.5]
String "2.5"
}
}
Note that there are four RollRegions in this example:
• One contiguous region for
Constant1 inputs (1)
• Two noncontiguous regions for
Constant2 inputs (2 and 3)
• One contiguous region for
Constant3 (4)
1
2 3 4