systemcomposer.profile.Profile.createProfile - Create profile - MATLAB (original) (raw)
Syntax
Description
[profile](#mw%5F627f6347-e43c-433a-9e9d-27dee4c838f1%5Fsep%5Fmw%5Fd32b34d7-7b08-4795-9cdb-6d8eec6c7548) = systemcomposer.profile.Profile.createProfile([profileName](#mw%5F627f6347-e43c-433a-9e9d-27dee4c838f1%5Fsep%5Fmw%5F982a3e88-31d5-4709-b858-3d6f87042388))
creates a new profile with name profileName
.
Note
Before you move, copy, or rename a profile to a different directory, you must close the profile in the Profile Editor or by using the close function. If you rename a profile, follow the example for the renameProfile function.
Examples
Create a model.
model = systemcomposer.createModel("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 in a file in the current directory asLatencyProfile.xml
.
Input Arguments
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
- systemcomposer.profile.Profile | systemcomposer.profile.Stereotype | systemcomposer.profile.Property
Functions
- systemcomposer.loadProfile | applyProfile | removeProfile | renameProfile | systemcomposer.profile.editor | systemcomposer.profile.Profile.find | systemcomposer.profile.Profile.load | save | open | close | systemcomposer.profile.Profile.closeAll | systemcomposer.profile.Stereotype.find | getDefaultStereotype | setDefaultStereotype | getDefaultElementStereotype | setDefaultElementStereotype | addStereotype | removeStereotype | getStereotype | applyStereotype | batchApplyStereotype | getStereotypes | changeStereotype | removeStereotype | hasStereotype | addProperty | removeProperty | hasProperty | setProperty | getProperty | getPropertyValue | getEvaluatedPropertyValue | getStereotypeProperties | applyStereotypeOrder | getStereotypeNamesByOrder | increaseStereotypeOrder | decreaseStereotypeOrder