Update AUTOSAR model with ARXML changes
updates the specified open model with changes found in the XML files associated with
ar. The XML files must
contain the AUTOSAR software component mapped by the model.
When comparing the current version of the XML file with the previous version, the comparison routine applies these rules in order:
If elements have the same UUID and type, the elements match. The function does not update the model.
If elements have different UUIDs, the elements do not match. The function updates the model with the ARXML change.
If elements have the same qualified name, the elements match. The function does not update the model.
Otherwise, elements do not match. The function updates the model with the ARXML changes.
The update generates and opens a report that details the changes made to the model, and required changes that were not made by the function.
AUTOSAR package structure updates affect the stored AR-PACKAGE structure and are applied to future exports. But imported package structure updates do not affect AUTOSAR Dictionary package path XML options. The XML package path options apply to AUTOSAR elements created in Simulink® rather than to imported elements.
Update Model with AUTOSAR ARXML Changes
mySWC with the AUTOSAR
ARXML changes described in
updatedSWC.arxml and open an update report.
open_system('mySWC') ar = arxml.importer('updatedSWC.arxml'); updateModel(ar,'mySWC');
### Updating model mySWC ### Saving original model as mySWC_backup.slx ### Creating HTML report mySWC_update_report.html
AUTOSAR information previously imported from XML files, specified as an
arxml.importer object handle.