Documentation Center

  • Trial Software
  • Product Updates

rmiobjnavigate

Navigate to model objects using unique Requirements Management Interface identifiers

Syntax

rmiobjnavigate(modelPath, guId)
rmiobjnavigate(modelPath, guId, grpNum)

Description

rmiobjnavigate(modelPath, guId) navigates to and highlights the specified object in a Simulink® model.

rmiobjnavigate(modelPath, guId, grpNum) navigates to the signal group number grpNum of a Signal Builder block identified by guId in the model modelPath.

Input Arguments

modelPath

A full path to a Simulink model file, or a Simulink model file name that can be resolved on the MATLAB® path.

guId

A unique string that the RMI uses to identify a Simulink or Stateflow® object.

grpNum

Integer indicating a signal group number in a Signal Builder block

Examples

Open the slvnvdemo_fuelsys_officereq example model, get the unique identifier for the MAP Sensor block:

slvnvdemo_fuelsys_officereq;                 % Open example model
gcb = ...
  'slvnvdemo_fuelsys_officereq/MAP sensor';  % Make current block
navCmdString = rmi.objinfo(gcb)              % Get rmoobjnavigate command 
                                             % with model name and object ID

rmi.objinfo returns the following value for navCmdString:

navCmdString =

rmiobjnavigate('slvnvdemo_fuelsys_officereq.mdl', ...
	'GIDa_9fc2c968_6068_49c6_968d_b08e363248b9');

Navigate to that block using the rmiobjnavigate command that rmi.objinfo returned:

eval(navCmdString);                          % Execute rmiobjnavigate command

See Also

|

Was this topic helpful?