When you determine relative path for a block, the operating
point does not need to contain a node corresponding to that block. You can
obtain operating point data for a block elsewhere, and then use the
relativePath
function to determine the correct location
for inserting this data in the operating point for the current model.
Open the Permanent Magnet DC Motor example model:
Create an empty OperatingPoint
object named
op
:
op =
OperatingPoint with no children.
Set the Identifier
property of the
OperatingPoint
object to match the name of the model:
In the model, open the DC Motor subsystem, select the
Inductor block, and find the relative
path to this block in the operating point data hierarchy:
relPath =
'DC Motor/Rotor Inductance'