Simulink.dictionary.ArchitecturalData
Edit architectural data in a Simulink data dictionary programmatically
Since R2023b
Description
The Simulink.dictionary.ArchitecturalData
object represents the
Architectural Data section of a Simulink® data dictionary. The Architectural Data object allows you to programmatically
access shared definitions across Simulink and architecture models of port interfaces, data types, system wide constants,
and their platform properties. You can also use the Architectural Data
Editor to manage architectural data.
Creation
You can create a new data dictionary using the Simulink.dictionary.archdata.create
function. This function returns the
Simulink.dictionary.ArchitecturalData
object.
dictName = "MyInterfaces.sldd";
archDataObj = Simulink.dictionary.archdata.create(dictName);
If you already created a data dictionary, you can create the
Architectural Data object using the Simulink.dictionary.archdata.open
function.
dictName = "MyInterfaces.sldd";
archDataObj = Simulink.dictionary.archdata.open(dictName);
Properties
Object Functions
addAliasType | Add Simulink alias type to Architectural Data section of Simulink data dictionary |
addConstant | Add constant to Architectural Data section of Simulink data dictionary |
addDataInterface | Add data interface to Architectural Data section of Simulink data dictionary |
addEnumType | Add enumerated type to Architectural Data section of Simulink data dictionary |
addNumericType | Add Simulink numeric type to Architectural Data section of Simulink data dictionary |
addPhysicalInterface | Add physical interface to Architectural Data section of Simulink data dictionary |
addPlatformMapping | Add AUTOSAR Classic mapping to Architectural Data section of Simulink data dictionary |
addReference | Add data dictionary reference to Architectural Data section of Simulink data dictionary |
addServiceInterface | Add service interface to Architectural Data section of Simulink data dictionary |
addStructType | Add structure type to Architectural Data section of Simulink data dictionary |
addValueType | Add value type to Architectural Data section of Simulink data dictionary |
close | Close any open connections to Simulink data dictionary |
discardChanges | Discard changes to Simulink data dictionary |
findEntryByName | Get object by name in Architectural Data section of Simulink data dictionary |
getConstant | Get Simulink.dictionary.archdata.Constant object in Architectural
Data section of Simulink data dictionary |
getConstantNames | Get constant names in Architectural Data section of Simulink data dictionary |
getDataType | Get data type in Architectural Data section of Simulink data dictionary |
getDataTypeNames | Get names of data types in Architectural Data section of Simulink data dictionary |
getInterface | Get interface object for interface in Architectural Data section of Simulink data dictionary |
getInterfaceNames | Get interface names in Architectural Data section of Simulink data dictionary |
getPlatformMapping | Get platform mapping object for platform of Simulink data dictionary |
getReferences | Get full paths of Simulink data dictionaries referenced by another Simulink data dictionary |
importFromBaseWorkspace | Import Simulink object definitions from base workspace to Architectural Data section of Simulink data dictionary |
importFromFile | Import Simulink object definitions from file to Architectural Data section of data dictionary |
isDirty | Check for unsaved changes in Simulink data dictionary |
moveToDesignData | Move interfaces, data types, and constants in Architectural Data section of Simulink data dictionary to design data |
moveToDictionary | Move architectural data of Simulink data dictionary to another data dictionary |
removeConstant | Remove constant from Architectural Data section of Simulink data dictionary |
removeDataType | Remove data type from Architectural Data section of Simulink data dictionary |
removeInterface | Remove interface from Architectural Data section of Simulink data dictionary |
removeReference | Remove Simulink data dictionary reference of another Simulink data dictionary |
save | Save changes to Architectural Data section of Simulink data dictionary |
show | View architectural data of Simulink data dictionary in Architectural Data Editor |
showChanges | View changes to architectural data of Simulink data dictionary in Comparison Tool |
Examples
Version History
Introduced in R2023b
See Also
Tools
Objects
Simulink.dictionary.archdata.AliasType
|Simulink.dictionary.archdata.Constant
|Simulink.dictionary.archdata.DataInterface
|Simulink.dictionary.archdata.DataElement
|Simulink.dictionary.archdata.FunctionElement
|Simulink.dictionary.archdata.FunctionArgument
|Simulink.dictionary.archdata.NumericType
|Simulink.dictionary.archdata.PhysicalInterface
|Simulink.dictionary.archdata.ServiceInterface
|Simulink.dictionary.archdata.StructElement
|Simulink.dictionary.archdata.ValueType
|Simulink.dictionary.archdata.StructType
|autosar.dictionary.ARClassicPlatformMapping
(AUTOSAR Blockset)