Simulink.interface.Dictionary
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
The Simulink.interface.Dictionary
object provides methods that
help you manage the interface dictionary.
Creation
To create a Simulink interface dictionary and return an object
representing the dictionary, use the Simulink.interface.dictionary.create
function.
dictName = 'MyInterfaces.sldd';
dictAPI = Simulink.interface.dictionary.create(dictName);
If you already created an interface dictionary, you can create a
Simulink.interface.dictionary
object to represent the existing
dictionary by using the Simulink.interface.dictionary.open
function.
dictAPI = Simulink.interface.dictionary.open('MyInterfaces.sldd');
Properties
Object Functions
addAliasType | Add Simulink alias type to Simulink interface dictionary |
addDataInterface | Add data interface to Simulink interface dictionary |
addEnumType | Add enumerated type to Simulink interface dictionary |
addNumericType | Add Simulink numeric type to Simulink interface dictionary |
addPlatformMapping | Add AUTOSAR Classic mapping to Simulink interface dictionary |
addReference | Add Simulink interface dictionary reference to another interface dictionary |
addServiceInterface | Add service interface to Simulink interface dictionary |
addStructType | Add structure type represented by Simulink.Bus in Simulink
interface dictionary |
addValueType | Add value type to Simulink interface dictionary |
close | Close open connections to Simulink interface dictionary |
discardChanges | Discard changes to interface dictionary |
findEntryByName | Get corresponding object for specified entry name in interface dictionary |
getDataType | Get data type in Simulink interface dictionary |
getDataTypeNames | Get names of data types in Simulink interface dictionary |
getInterface | Get interface object for interface in Simulink interface dictionary |
getInterfaceNames | Get cell array of interface names in Simulink interface dictionary |
getPlatformMapping | Get platform mapping object for platform in dictionary |
getReferences | Get cell array of names of interface dictionaries that are referenced by another interface dictionary |
importFromBaseWorkspace | Import Simulink object definitions |
importFromFile | Import Simulink object definitions |
isDirty | Check whether there are unsaved changes in Simulink interface dictionary |
removeDataType | Remove data type from Simulink interface dictionary |
removeInterface | Remove interface from Simulink interface dictionary |
removeReference | Remove Simulink interface dictionary reference from another interface dictionary |
save | Save changes to Simulink interface dictionary |
show | View contents of Simulink interface dictionary in standalone viewer |
showChanges | View changes to contents of Simulink interface dictionary in comparison viewer |
Examples
Version History
Introduced in R2022bSee Also
autosar.dictionary.ARClassicPlatformMapping
| Simulink.interface.dictionary.DataInterface
| Simulink.interface.dictionary.DataElement
| addElement
| exportDictionary
| getPlatformProperties
| getPlatformProperty
| setPlatformProperty
| Simulink.interface.dictionary.create
| Simulink.interface.dictionary.open