When you rename a block in your model, use the
move
function to update the operating point data.
Open the Permanent Magnet DC Motor example model and create an
OperatingPoint
object named op
using
the Start
values from the model:
op =
OperatingPoint with children:
-----------------------------
DC Motor
DC Voltage
ERef
Load Torque
MRRef Motor
MRRef Torque
Sensing
-----------------------------
Select the DC Voltage block and find the
relative path to this block in the operating point data hierarchy:
Rename the DC Voltage block to
1.5V
.
Select the block again and find the new relative path:
Update the operating point data hierarchy to reflect the new block
name:
op =
OperatingPoint with children:
-----------------------------
1.5V
DC Motor
ERef
Load Torque
MRRef Motor
MRRef Torque
Sensing
-----------------------------
Operating point op
now lists 1.5V
as
its child.