Main Content

save

Save architecture instance

Description

example

save(architectureInstance,文件名)saves an architecture instance to a MAT-file. Thesavemethod is part of thesystemcomposer.analysis.ArchitectureInstanceclass.

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

Examples

collapse all

Create a profile for latency characteristics.

profile = systemcomposer.profile.Profile.createProfile('LatencyProfile'); latencybase = profile.addStereotype('LatencyBase'); latencybase.addProperty('latency','Type','double'); latencybase.addProperty('dataRate','Type','double','DefaultValue','10'); connLatency = profile.addStereotype('ConnectorLatency','Parent',...'LatencyProfile.LatencyBase'); connLatency.addProperty('secure','Type','boolean'); connLatency.addProperty('linkDistance','Type','double'); nodeLatency = profile.addStereotype('NodeLatency','Parent',...'LatencyProfile.LatencyBase'); nodeLatency.addProperty('resources','Type','double','DefaultValue','1'); portLatency = profile.addStereotype('PortLatency','Parent',...'LatencyProfile.LatencyBase'); portLatency.addProperty('queueDepth','Type','double'); portLatency.addProperty('dummy','Type','int32');

Instantiate all stereotypes in a profile.

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

Save the architecture instance.

instance.save('InstanceFile');

Input Arguments

collapse all

Architecture instance to be saved, specified as asystemcomposer.analysis.ArchitectureInstanceobject.

MAT——文件保存实例,指定为一个茶racter vector.

Example:'InstanceFile'

Data Types:char

More About

collapse all

Definitions

Term Definition Application More Information
analysis Analysis 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 analysis to calculate overall reliability, mass roll-up, performance, or thermal characteristics of a system, or to perform a SWaP analysis. Analyze Architecture
instance An instance is an occurrence of an architecture model at a given point of time. You can update an instance with changes to a model, but the instance will not update with changes in active variants or model references. You can use an instance, saved in an.MATfile, of a System Composer™ architecture model for analysis. Create a Model Instance for Analysis

Introduced in R2019a