Main Content

getPlatformMapping

Get platform mapping object for platform in dictionary

Since R2022b

Description

example

platformMapping = getPlatformMapping(dictObj,platformName) returns the mapping object for the specified platform in the dictionary. This allows configuration of platform-specific properties in the dictionary.

Examples

collapse all

To get the mapping object for the specified platform in the dictionary, use the getPlatformMapping function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

myPlatformMapping = getPlatformMapping(dictAPI, 'AUTOSARClassic')
myPlatformMapping = 

  ARClassicPlatformMapping with no properties.

Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, create or open dictObj by using Simulink.interface.dictionary.create or Simulink.interface.dictionary.open.

Platform mapping name selection, for example, AUTOSARClassic mapping.

Example: 'AUTOSARClassic'

Output Arguments

collapse all

Platform mapping object, specified as an autosar.dictionary.ARClassicPlatformMapping object.

Version History

Introduced in R2022b

expand all