Main Content

rmiobjnavigate

Navigate to model objects

    Description

    example

    rmiobjnavigate(modelPath,modelElement) navigates to and highlights the model element specified by modelElement in the Simulink® model specified by the path modelPath.

    example

    rmiobjnavigate(modelPath,modelElement,grpNum) navigates to the signal group number grpNum of a Signal Builder block.

    Examples

    collapse all

    This example shows how to navigate to a Simulink® model element.

    Open the slvnvdemo_fuelsys_officereq example model.

    model = "slvnvdemo_fuelsys_officereq";
    open_system(model);

    Get a handle to the MAP Sensor block.

    blockHandle = get_param("slvnvdemo_fuelsys_officereq/MAP sensor","Handle");

    Navigate to the MAP Sensor block.

    rmiobjnavigate(model,blockHandle);

    This example shows how to navigate to a Simulink® Signal Editor block signal group.

    Open the slvnvdemo_fuelsys_officereq model.

    model = "slvnvdemo_fuelsys_officereq";
    open_system(model);

    Get a handle to the Test inputs Signal Editor block.

    blockHandle = get_param("slvnvdemo_fuelsys_officereq/Test inputs","Handle");

    Navigate to the Test inputs block and open the second signal group in the block.

    rmiobjnavigate(model,blockHandle,2)

    Input Arguments

    collapse all

    Simulink model name or path, specified as a string scalar or a character vector. This argument must be a full path to a Simulink model file or a Simulink model file name that can be resolved on the MATLAB® path.

    Model element ID, specified as a string scalar or a character vector.

    Signal group number for Signal Builder block, specified as a double array.

    Version History

    Introduced in R2010b