Navigate to model objects using unique Requirements Management Interface identifiers
rmiobjnavigate(modelPath, guId)
rmiobjnavigate(modelPath, guId, grpNum)
rmiobjnavigate(
navigates to and highlights the specified object in a Simulink® model. modelPath
, guId
)
rmiobjnavigate(
navigates to the signal group number modelPath
, guId
, grpNum
)grpNum
of a Signal
Builder block identified by guId
in the model
modelPath
.
|
A full path to a Simulink model file, or a Simulink model file name that can be resolved on the MATLAB® path. |
|
A unique identifier that the RMI uses to identify a Simulink or Stateflow® object. |
|
Integer indicating a signal group number in a Signal Builder block |
Open the slvnvdemo_fuelsys_officereq
example model and get the
unique identifier for the MAP Sensor block:
% Open example model slvnvdemo_fuelsys_officereq; % Get the Ssession Independent Identifier of the MAP Sensor Block targetSID = Simulink.ID.getSID('slvnvdemo_fuelsys_officereq/MAP sensor');
Navigate to the MAP Sensor block using
rmiobjnavigate
and the unique identifier returned in the
previous step:
% Split targetSID into two components [targetModel, targetObj] = strtok(targetSID,':'); % Navigate to the MAP sensor using the model name and model guID rmiobjnavigate(targetModel, targetObj)