Main Content

rmidata.export

Move links from internal to external storage

    Description

    example

    [linkedElements,reqLinks] = rmidata.export moves links stored internally in the currently open Simulink® model to an external SLMX file. The function saves the SLMX file in the same folder as the model.

    example

    [linkedElements,reqLinks] = rmidata.export(model) moves links stored internally in the specified model to an external SLMX file.

    Examples

    collapse all

    This example shows how to export links that are stored internally in the current model to an external file.

    Open the slvnvdemo_fuelsys_officereq_internal model.

    open_system("slvnvdemo_fuelsys_officereq_internal");

    Export the links to an external file.

    [linkedElements,reqLinks] = rmidata.export
    Exporting requirement links from "slvnvdemo_fuelsys_officereq_internal"...
    
    linkedElements = 16
    
    reqLinks = 16
    

    This example shows how to export links that are stored internally in a model to an external file.

    Open the slvnvdemo_fuelsys_officereq_internal model.

    model = "slvnvdemo_fuelsys_officereq_internal";
    open_system(model);

    Export the links to an external file.

    [linkedElements,reqLinks] = rmidata.export(model)
    linkedElements = 16
    
    reqLinks = 16
    

    Input Arguments

    collapse all

    Name or handle of a Simulink model, specified as a string scalar, character vector, or model handle.

    Output Arguments

    collapse all

    Number of linked model elements, returned as a double array.

    Number of requirements links in the model, returned as a double array.

    Version History

    Introduced in R2011b