Instantiate Architecture Model - Create an instance of the architecture model that you can use for
analysis - MATLAB ([original](https://www.mathworks.com/help/systemcomposer/ref/instantiatearchitecturemodel.html)) ([raw](?raw))
Create an instance of the architecture model that you can use for analysis
Description
Instantiate Architecture Model creates an instance of an architecture model for analysis.
The Select Stereotypes tree lists the stereotypes of all profiles that have been loaded in the current session and allows you to select those whose properties should be available in the instance model. You can browse for an analysis function, create a new analysis function, or skip analysis at this point. If the analysis function requires inputs other than elements in the model, such as an exchange rate to compute cost, enter it in Function arguments. Select a mode for iterating through model elements, for example, Bottom-up
to move from the leaves of the tree to the root. Strict Mode ensures elements in the instantiated model get properties only if the corresponding element in the composition model has the stereotype applied.
Click Instantiate to open the Analysis Viewer.
Open the Instantiate Architecture Model
- System Composer™ toolstrip: Navigate to Modeling > Analysis Model.
Parameters
Analysis function, specified as the MATLAB® function handle to be executed when analysis is run. For more information, see Analysis Function Constructs.
Comma-separated values of optional arguments to the analysis function.
Iteration type to specify how to process instances while using the analysis function. Select one of these options from the list:
Pre-order
— Start from the top level, move to a child component, and process the subcomponents of that component recursively before moving to a sibling component.Top-Down
— Like pre-order, but process all sibling components before moving to their subcomponents.Post-order
— Start from components with no subcomponents, process each sibling, and then move to parent.Bottom-up
— Like post-order, but process all subcomponents at the same depth before moving to their parents.
Whether to normalize value based on units, if any, specified in property definition upon instantiation.
Condition for instances getting properties only if the corresponding element in the composition model has the stereotype applied.
Programmatic Use
More About
Static analysis analyzes the structure of the system to quantitatively evaluate an architecture for certain characteristics. Static analysis uses an analysis function and parametric values of properties and parameters 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 size, weight, and power (SWaP) analysis to increase efficiency.
An analysis function is a MATLAB function that computes values necessary to evaluate the architecture using the properties of each element in the model instance and instance-specific parameters at the component and architecture levels. Use an analysis function to calculate the result of an analysis.
An 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 a MAT
file, of a System Composer architecture model for analysis.
An 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.
Version History
Introduced in R2019a
See Also
Tools
Functions
- instantiate | iterate | lookup | save | update | refresh | systemcomposer.analysis.loadInstance | systemcomposer.analysis.deleteInstance | getValue | setValue | hasValue | getParameter | getEvaluatedParameterValue | getParameterNames | getParameterValue | setParameterValue | isArchitecture | isComponent | isConnector | isPort | getQualifiedName
Objects
- systemcomposer.analysis.Instance | systemcomposer.analysis.ArchitectureInstance | systemcomposer.analysis.ComponentInstance | systemcomposer.analysis.PortInstance | systemcomposer.analysis.ConnectorInstance