Main Content

addPlatformMapping

Add AUTOSAR Classic mapping to Architectural Data section of Simulink data dictionary

Since R2023b

    Description

    platformMapping = addPlatformMapping(archDataObj,platformName) adds a mapping for the platform specified by platformName to archDataObj, the Architectural Data section of the data dictionary.

    example

    Examples

    collapse all

    To add an AUTOSAR Classic mapping to a Simulink® data dictionary, use the addPlatformMapping function. For an example that shows more of the workflow for related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.

    Open the Architectural Data section of data dictionary MyInterfaces.sldd.

    dictName = "MyInterfaces.sldd";
    archDataObj = Simulink.dictionary.archdata.open(dictName);
    platformMapping = addPlatformMapping(archDataObj,"AUTOSARClassic");

    Input Arguments

    collapse all

    Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData object. Before you use this function, create archDataObj by using Simulink.dictionary.archdata.create or Simulink.dictionary.archdata.open.

    Platform mapping name, specified as a character vector or string scalar.

    Example: "AUTOSARClassic"

    Output Arguments

    collapse all

    Platform mapping object, returned as an autosar.dictionary.ARClassicPlatformMapping (AUTOSAR Blockset) object.

    Version History

    Introduced in R2023b