Technical data
The RTW TLC Function Library
3-27
LibRenameParameter(block, param, newName)
Given a reference to a block, a reference to a block parameter, and the new
name for the block parameter, this function renames the parameter and
creates a new reference to the parameter. Most likely, you will call this function
from
BlockInstanceSetup.
As an example, if you want to rename the S-function parameter
P1 defined in
this RTW file:
System {
Block {
Name "sfunc"
Type "S-Function"
:
Parameter {
Name "P1Size"
Value [1, 1]
String ""
}
Parameter {
Name "P1"
Value 2.5
String "Kp"
}
:
}
}