Documentation Center

  • Trial Software
  • Product Updates

rmi.objinfo

Return navigation information for model object

Syntax

[navCmd, dispString] = rmi.objinfo(obj)

Description

[navCmd, dispString] = rmi.objinfo(obj) returns navigation information for the Simulink® model object obj.

Input Arguments

obj

Name or handle of a Simulink or Stateflow® object.

Output Arguments

navCmd

String that contains the MATLAB® command that navigates to the model object obj. Pass this command to the MATLAB Automation server to highlight obj.

dispString

String that contains the name and path to the model object obj.

Examples

Open the slvnvdemo_fuelsys_officereq example model, get the unique identifier for the MAP Sensor block, and navigate to that block using the rmiobjnavigate function:

slvnvdemo_fuelsys_officereq;                 % Open example model
gcb = ...
  'slvnvdemo_fuelsys_officereq/MAP sensor';  % Make current block
[navCmdString, objPath] = rmi.objinfo(gcb);  % Get rmiobjnavigate command 
                                             % and path 

See Also

|

Was this topic helpful?