Main Content

findEntryByName

Get object by name in Architectural Data section of Simulink data dictionary

Since R2023b

    Description

    example

    entryObj = findEntryByName(archDataObj,entryName) returns the object that corresponds to the specified entry name, entryName, in archDataObj, the Architectural Data section of a data dictionary. If the entry does not exist in the data dictionary, an empty value is returned.

    Examples

    collapse all

    Get the object representing the structure data type named myStructType1 from the Architectural Data section of the data dictionary MyInterfaces.sldd.

    archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd");
    structObj = findEntryByName(archDataObj,"myStructType1")
    structObj = 
    
      StructType with properties:
    
               Name: 'myStructType1'
        Description: ''
           Elements: [0×0 Simulink.dictionary.archdata.StructElement]
              Owner: [1×1 Simulink.dictionary.ArchitecturalData]

    Input Arguments

    collapse all

    Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData object.

    Architecture data element name, specified as a character vector or a string scalar.

    Example: "DataInterface"

    Output Arguments

    collapse all

    Architectural data element object, returned as the object type of the corresponding entry in the Architectural Data section. If the specified data element object does not exist an error is thrown.

    Version History

    Introduced in R2023b