Main Content

save

Class: slmetric.dashboard.Configuration
Package: slmetric.dashboard

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

Description

Save the contents of a configuration object to an XML file. The configuration object contains information on a custom Metrics Dashboard layout.

save(Co,'FileName','myConfig.xml', ... ,'Location',pwd, 'locale', 'ja_JP'); saves the contents of a configuration object to an XML file. The XML file applies your customizations to the Metrics Dashboard.

Note

Do not manually edit the XML file.

Input Arguments

expand all

slmetric.dashboard.Configuration object to save to an XML file.

Name of XML file that contains information on the location and types of widgets that are on the Metrics Dashboard.

Data Types: char

Name of XML file that contains information on the location and types of widgets in the Metrics Dashboard. This input argument is optional.

Data Types: char

Name of new folder that is to contain the XML file that contains information on the location and types of widgets in the Metrics Dashboard. 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

Serialize a Configuration Object to XML File

Serialize a configuration object to an XML file.

Use the save method to serialize an slmetric.dashboard.Configuration object to an XML file. If you modify the information that this configuration object contains, use the slmetric.dashboard.Configuration.save method to save 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