updateModel
Update AUTOSAR model or architecture with ARXML changes
Syntax
Description
updateModel(
updates the specified open model with changes found in the AUTOSAR XML (ARXML) files
associated with the ar
,modelName
)arxml.importer
object ar
. The ARXML files must
contain the AUTOSAR software component mapped by the model, and must be suitable for
code generation.
When comparing the current version of the ARXML file with the previous version, the comparison routine applies these rules in this order:
If elements have the same UUID and type, then the elements match. The function does not update the model.
If elements have different UUIDs, then the elements do not match. The function updates the model with the ARXML change.
If elements have the same qualified name, then 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 updater generates and opens a report that details the changes made to the
model, and required changes that were not made by the function. You can control
whether this report opens using the OpenReport
argument.
AUTOSAR package structure updates affect the stored AR-PACKAGE structure and are applied to future exports. 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.
This function is supported only for models and architectures configured for the AUTOSAR Classic Platform.
updateModel(
updates the specified open architecture model with changes found in the ARXML files
associated with the ar
,archModelName
)arxml.importer
object ar
. The ARXML files must
contain the AUTOSAR software composition mapped by the model, and must be suitable
for code generation.
updateModel(___,OpenReport=
specifies name-value argument OpenReportValue
)OpenReport
in addition to any of
the input argument combinations in previous syntaxes. To specify that the AUTOSAR
Update Report opens when the update process is complete, set
OpenReport
to "on"
.
Examples
Input Arguments
Limitations
You can branch ports to multiple runnable systems. If an ARXML update removes data access for some but not all runnables accessing the port, then the software does not update the model canvas and the AUTOSAR Update Report does not indicate a change. The connectors and ports on the affected runnable system must be removed manually.