Analysis Viewer - View and edit analysis instance model and analyze using analysis
function - MATLAB ([original](https://www.mathworks.com/help/systemcomposer/ref/analysisviewer.html)) ([raw](?raw))
View and edit analysis instance model and analyze using analysis function
Description
The Analysis Viewer shows an instantiated architecture.
The Analysis Viewer shows all elements in the first column. The other columns show properties for all stereotypes chosen for the current instance. If a property is not part of a stereotype applied to an element, that field is grayed out. You can use the Filter button to hide properties for certain stereotypes. When you select an element, Instance Properties shows the stereotypes and property values of the element. You can save an instance in a MAT file and open it again in the Analysis Viewer.
If you make changes in the model while an instance is open, you can synchronize the instance with the model. Update pushes the changes from the instance to the model. Refresh pulls changes to the instance from the model. Unsynchronized changes are shown in a different color. Selecting a single element enables the option to Update Element.
Note
When you save an instance of a subsystem reference, it propagates to all other instances and synchronizes. Model references continuously synchronize. In an analysis model, to ensure all unsaved subsystem references synchronize, save your changes, and then clickRefresh or Update in the Analysis Viewer tool. For more information, see Edit and Save Subsystem Reference in Reference a Subsystem File in a Model.
Open the Analysis Viewer
- System Composer™ toolstrip: Navigate to Modeling > Analysis Model > Analysis Viewer.
- In the Instantiate Architecture Model tool, select Instantiate.
Parameters
Open a saved MAT file of an existing instance model.
Save the current instance model as a MAT file.
Delete the current instance model.
Analyze the architecture instance using an analysis function.
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.
Push the changes from the architecture instance to the architecture model.
Pull changes to the architecture instance from the architecture model.
Select this check box to enable continuous analysis when values change.
Select this check box to automatically refresh the instance when the composition changes.
Select this check box to overwrite the entire instance model from the composition model.
Programmatic Use
systemcomposer.analysis.loadInstance
loads a saved architecture instance object from a saved MAT file that can be later opened in the Analysis Viewer.
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