Main Content

addPlatformMapping

Add AUTOSAR Classic mapping to Simulink interface dictionary

Since R2022b

In R2023b the Architectural Data section of data dictionaries was introduced. When managing interfaces, data types, constants, and software address methods consider using the Simulink.dictionary.ArchitecturalData programmatic interfaces instead. For more information, see Programmatically Manage AUTOSAR Architectural Data.

Description

platformMapping = addPlatformMapping(dictObj,platformName) adds mapping for the specified platform in the interface dictionary.

example

Examples

collapse all

To add AUTOSAR Classic mapping to an interface dictionary, use the addPlatformMapping function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

% open interface dictionary
dictName = 'MyInterfaces.sldd';
dictAPI = Simulink.interface.dictionary.open(dictName);
platformMapping = addPlatformMapping(dictAPI,'AUTOSARClassic');

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

collapse all