Main Content

removePlatformMapping

Remove platform mapping of Architectural Data section of data dictionary

Since R2025a

    Description

    removePlatformMapping(archData,"AUTOSARClassic") removes the AUTOSAR Classic platform mapping from the Architectural Data section of the data dictionary archData.

    Note

    Removing an AUTOSAR Classic platform mapping from the Architectural Data section of a data dictionary invalidates the AUTOSAR Classic code mappings for any models that are linked to the data dictionary.

    example

    Examples

    collapse all

    Check to see if a previously existing Architectural Data section has an AUTOSAR Classic platform mapping.

    archData = Simulink.dictionary.archdata.open("MyArchitecturalData.sldd");
    mappingPresence = getPlatformMapping(archData)
    mappingPresence = 
      ARClassicPlatformMapping with no properties.
    

    The getPlatformMapping function returns an autosar.dictionary.ARClassicPlatformMapping (AUTOSAR Blockset) object, indicating that this data dictionary has an AUTOSAR Classic platform mapping.

    Remove the AUTOSAR Classic platform mapping. Verify the removal of the mapping.

    removePlatformMapping(archData,"AUTOSARClassic");
    autosarClassicMapping = getPlatformMapping(archData,"AUTOSARClassic")
    autosarClassicMapping =
    
         []

    The getPlatformMapping function does not return an autosar.dictionary.ARClassicPlatformMapping object, indicating its removal.

    Input Arguments

    collapse all

    Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData object.

    Version History

    Introduced in R2025a