systemcomposer.profile.Profile.load - Load profile from file - MATLAB (original) (raw)

Main Content

Syntax

Description

[profile](#mw%5F1ae15489-885f-4827-9a30-433f3d285234%5Fsep%5Fmw%5Fd32b34d7-7b08-4795-9cdb-6d8eec6c7548) = systemcomposer.profile.Profile.load([profileName](#mw%5F1ae15489-885f-4827-9a30-433f3d285234%5Fsep%5Fmw%5F982a3e88-31d5-4709-b858-3d6f87042388)) loads a profile from a file name.

example

Examples

collapse all

Create a profile for latency characteristics and save it.

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");

profile.save

Load the profile into another variable.

newProfile = systemcomposer.profile.Profile.load("LatencyProfile")

newProfile =

Profile with properties:

        Name: 'LatencyProfile'
FriendlyName: ''
 Description: ''
 Stereotypes: [1×5 systemcomposer.profile.Stereotype]

Input Arguments

collapse all

Name of profile, specified as a character vector or string. Profile must be available on the MATLAB® path with a .xml extension.

Example: "LatencyProfile"

Data Types: char | string

Output Arguments

More About

Version History

Introduced in R2019a

See Also

Tools

Blocks

Objects

Functions

Topics