Main Content

save

Class: slmetric.config.Configuration
Namespace: slmetric.config

(To be removed) Save contents of slmetric.config.Configuration object to XML file

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.

Description

Save the contents of a configuration object to an XML file. The configuration object contains Metrics Dashboard customizations pertaining to metric thresholds and custom metric families.

save(Config,'FileName','myConfig.xml',... 'Location',pwd, 'locale', 'ja_JP'); saves the contents of a configuration object to an XML file.

example

Note

Do not manually edit the XML file.

Input Arguments

expand all

slmetric.config.Configuration object to create Metrics Dashboard customizations. This property is read/write.

Name of XML file that contains Metrics Dashboard customizations pertaining to metric thresholds and custom metric families.

Data Types: char

Name of folder containing XML file, which contains Metrics Dashboard customizations pertaining to metric thresholds and custom metric families.

Data Types: char

Name of new folder that is to contain XML file that contains information on Metrics Dashboard customizations pertaining to metric thresholds and custom metric families. If you do not specify a value for locale, Simulink creates the XML file in the folder that you specify with the Location property. This input argument is optional.

Data Types: char

Examples

expand all

Serialize configuration object to XML file.

Use the save method to add an existing slmetric.config.Configuration object to the base workspace. As an input, specify the name of the XML file that contains information on the custom metric families and metric thresholds corresponding to the configuration object. If you modify the information that this configuration object contains, use the slmetric.config.Configuration.save method to save the information to this file.

save(CONF,'config','FileName','Configfile.xml','Location',pwd)

Use the slmetric.config.setActiveConfiguration function to specify that the metric engine use this configuration.

slmetric.config.setActiveConfiguration('C:\temp\Configfile.xml'); 

Version History

Introduced in R2018b

collapse all

R2022a: Metrics Dashboard will be removed

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.