Main Content

findEntryByName

Get corresponding object for specified entry name in interface dictionary

Since R2023a

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

entryObj = findEntryByName(dictObj,entryName) returns the object that corresponds to the specified entry name, entryName, in the interface dictionary. If the entry does not exist in the dictionary, an empty value is returned.

example

Examples

collapse all

Get object for structure type named myStructType1 from the interface dictionary MyInterfaces.sldd.

dictAPI = Simulink.interface.dictionary.open('MyInterfaces.sldd');
structObj = findEntryByName(dictAPI,'myStructType1')
structObj = 
  StructType with properties:
           Name: 'myStructType1'
    Description: ''
       Elements: [1×2 Simulink.interface.dictionary.StructElement]
          Owner: [1×1 Simulink.interface.Dictionary]

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.

Interface or data type name, specified as a character vector or a string scalar.

Example: 'DataInterface'

Output Arguments

collapse all

Interface or data type object, returned as the object type of the corresponding entry in the interface dictionary.

Version History

Introduced in R2023a

collapse all

R2023b: Simulink.interface.Dictionary object replaced by Simulink.dictionary.ArchitecturalData object

Starting in R2023b, use the Simulink.dictionary.ArchitecturalData object to programmatically manage architectural data instead of the Simulink.interface.Dictionary object.

Go to top of page