systemcomposer.loadProfile - Load profile by name - MATLAB (original) (raw)

Load profile by name

collapse all in page

Syntax

[profile = systemcomposer.loadProfile(profileName)](#d126e138595)

Description

[profile](#mw%5Fce8d5759-de3b-4fe6-8982-e0e195ecf1ea%5Fsep%5Fmw%5Fd32b34d7-7b08-4795-9cdb-6d8eec6c7548) = systemcomposer.loadProfile([profileName](#mw%5Fce8d5759-de3b-4fe6-8982-e0e195ecf1ea%5Fsep%5Fmw%5F982a3e88-31d5-4709-b858-3d6f87042388)) loads a profile with the specified file name.

example

Examples

collapse all

Create a model.

model = systemcomposer.createModel("archModel"); systemcomposer.openModel("archModel");

Create a profile with a stereotype and properties, open the Profile Editor, then apply the profile to the model.

profile = systemcomposer.profile.Profile.createProfile("LatencyProfile"); latencybase = profile.addStereotype("LatencyBase"); latencybase.addProperty("latency",Type="double"); latencybase.addProperty("dataRate",Type="double",DefaultValue="10"); systemcomposer.profile.editor(profile) model.applyProfile("LatencyProfile");

Save the profile and load the profile. In this example,profileNew is equal to profile.

save(profile); profileNew = systemcomposer.loadProfile("LatencyProfile");

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

collapse all

Profile, returned as a systemcomposer.profile.Profile object.

More About

collapse all

Term Definition Application More Information
Stereotype Stereotypes provide a mechanism to extend the core language elements and add domain-specific metadata. Apply stereotypes to core element types. An element can have multiple stereotypes. Stereotypes allow you to style different elements. Stereotypes provide elements with a common set of properties, such as mass, cost, and power. Define Stereotypes and Perform Analysis for Mobile RobotExtend Architectural Design Using StereotypesChange Stereotypes Based on Stereotype Hierarchy in Portable Blender Architecture
Property A property is a field in a stereotype. You can specify property values for each element to which the stereotype is applied. Use properties to store quantitative characteristics, such as weight or speed, that are associated with a model element. Properties can also be descriptive or represent a status. You can view and edit the properties of each element in the architecture model using the Property Inspector. For more information, see Use Property Inspector in System Composer. Set PropertiesAdd Properties with StereotypesSet Properties for Analysis
Profile A profile is a package of stereotypes. You can use profiles to create a domain of specialized element types. Author profiles and apply profiles to a model using the Profile Editor. You can store stereotypes for a project in one or several profiles. When you save profiles, they are stored in XML files. Extend System Composer Language Elements Using ProfilesChange Stereotype Order Using Manage Profiles Tool

Version History

Introduced in R2019a

See Also

Tools

Blocks

Objects

Functions

Topics