Main Content

moveToDesignData

Move interfaces, data types, and constants in Architectural Data section of Simulink data dictionary to design data

Since R2023b

    Description

    moveToDesignData(objName) removes the data element specified by objName from the Architectural Data section of a data dictionary while storing it in design data.

    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.

    archDataObj = Simulink.dictionary.archdata.create('dataDictionary.sldd');
    myDataInterfaceObj = addDataInterface(archDataObj, 'MyDataInterface');

    Move the data interface to design data.

    moveToDesignData(myDataInterfaceObj);

    Input Arguments

    collapse all

    Architectural data element to be moved to design data, specified as one of the following object types: Simulink.dictionary.archdata.DataInterface, Simulink.dictionary.archdata.Constant, and Simulink.dictionary.archdata.DataType.

    Example: myConstantObj

    Version History

    Introduced in R2023b