Main Content


Update architecture model



update(architectureInstance) updates a specification model to mirror the changes in the architecture instance architectureInstance. The update method is part of the systemcomposer.analysis.ArchitectureInstance class.

This function is part of the instance API that you can use to analyze the model iteratively, element by element. instance refers to the element instance on which the iteration is being performed.


collapse all

Update the specification model to mirror the changes in the architecture instance.

Create a profile for latency characteristics.

profile = systemcomposer.profile.Profile.createProfile('LatencyProfile');

latencybase = profile.addStereotype('LatencyBase');

Create a new model. Apply the profile to the model. Apply the stereotype to the architecture. Instantiate all stereotypes in a profile.

model = systemcomposer.createModel('archModel',true);
instance = instantiate(model.Architecture,'LatencyProfile','NewInstance');

Set a new value for the 'dataRate' property on the architecture instance.


Update the specification model according to the architecture instance.


Get the new value of the 'dataRate' property on the architecture.

value = model.Architecture.getPropertyValue('LatencyProfile.LatencyBase.dataRate')
value =


Input Arguments

collapse all

Architecture instance for which specification model is updated, specified as a systemcomposer.analysis.ArchitectureInstance object.

More About

collapse all


TermDefinitionApplicationMore Information
analysisAnalysis is a method for quantitatively evaluating an architecture for certain characteristics. Static analysis analyzes the structure of the system. Static analysis uses an analysis function and parametric values of properties captured in the system model.Use analyses to calculate overall reliability, mass roll-up, performance, or thermal characteristics of a system, or to perform a SWaP analysis.
analysis functionAn analysis function is a MATLAB® function that computes values necessary to evaluate the architecture using properties of each element in the model instance.Use an analysis function to calculate the result of an analysis.Write Analysis Function
instance modelAn instance model is a collection of instances.You can update an instance model with changes to a model, but the instance model will not update with changes in active variants or model references. You can use an instance model, saved in an .MAT file, of a System Composer™ architecture model for analysis.Run Analysis Function
instanceAn instance is an occurrence of an architecture model element at a given point in time.An instance freezes the active variant or model reference of the component in the instance model.Create a Model Instance for Analysis

Introduced in R2019a