Main Content

updateArchitecturalData

Update Architectural Data section from ARXML definitions

Since R2024b

    Description

    updateArchitecturalData(arxmlImportObj,dataDictionary) updates the Architectural Data section of the Simulink® data dictionary specified by dataDictionary with architectural data definitions found in the arxml.importer object arxmlImportObj. If no data dictionary exists, then Simulink creates one.

    example

    updateArchitecturalData(arxmlImportObj,dataDictionary,Name=Value) specifies options using one or more name-value arguments. For example, to open the AUTOSAR Update Report after updating a data dictionary, set OpenReport to "on".

    example

    Examples

    collapse all

    Add new or existing architectural data to the Architectural Data section of a data dictionary.

    Import ARXML files by using the arxml.importer object.

    arxmlImportObj = arxml.importer("ThrottlePositionControl.arxml");

    Use the updateArchitecturalData function to update an existing data dictionary with definitions found in the arxml.importer object arxmlImportObj. To open the AUTOSAR Update Report after updating the data dictionary, set the OpenReport name-value argument to "on".

    updateArchitecturalData(arxmlImportObj,"myDataDictionary.sldd",...
      OpenReport="on")
    ### Saving original dictionary as myDataDictionary_backup.sldd
    ### Creating HTML report myDataDictionary_update_report.html

    Input Arguments

    collapse all

    AUTOSAR information previously imported from ARXML files, specified as an arxml.importer object.

    Simulink data dictionary to update, specified as a character vector or string scalar. Include the file extension .sldd in the filename.

    Example: updateArchitecturalData(arxmlImportObj,"myDict.sldd")

    Data Types: char | string

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: updateArchitecturalData(arxmlImportObj,"myDataDictionary.sldd",OpenReport="on",UseValueTypes=true);

    Option to open the AUTOSAR Update Report after updating a data dictionary, specified as "on" or "off".

    • "on" — The report opens.

    • "off" — The report does not open.

    Example: updateArchitecturalData(arxmlImportObj,"myDict.sldd",OpenReport="off")

    Data Types: char | string

    Option to update the Architectural Data section of a data dictionary from ARXML descriptions and import AUTOSAR data types as Simulink.dictionary.archdata.ValueType objects, specified as numeric or logical 1 (true) or 0 (false)

    Example: UseValueTypes=true

    Data Types: logical

    Version History

    Introduced in R2024b