Main Content

moveToDesignData

Move objects in Architectural Data section of Simulink data dictionary to Design Data section of the same data dictionary

Since R2023b

    Description

    moveToDesignData(objName) removes the data element specified by objName from the Architectural Data section of a data dictionary and stores it in the Design Data section of the same data dictionary.

    example

    Examples

    collapse all

    This example adds a data interface to the Architectural Data section of a data dictionary and then moves it to design data.

    Create a data dictionary and add a data interface to the Architectural Data section.

    archData = Simulink.dictionary.archdata.create("dataDictionary.sldd");
    myDataInterface = addDataInterface(archData,"MyDataInterface");

    Move the data interface to design data.

    moveToDesignData(myDataInterface);

    Version History

    Introduced in R2023b