save

Class: slmetric.config.Configuration
Package: slmetric.config

Save contents of slmetric.config.Configuration object to XML file

Syntax

save(Config,'FileName','myConfig.xml',... 'Location',pwd, 'locale', 'ja_JP');

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.

example

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

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

Introduced in R2018b