Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ModelAdvisor.ListViewParameter class

Package: ModelAdvisor

Add list view parameters to custom checks

Description

The Model Advisor uses list view parameters to populate the Model Advisor Result Explorer. Access the information in list views by clicking Explore Result in the Model Advisor window.

Construction

ModelAdvisor.ListViewParameterAdd list view parameters to custom checks

Properties

AttributesAttributes to display in Model Advisor Report Explorer
DataObjects in Model Advisor Result Explorer
NameDrop-down list entry

Copy Semantics

Handle. To learn how this affects your use of the class, see Copying Objects (MATLAB) in the MATLAB® Programming Fundamentals documentation.

Examples

    Note:   The following example is a fragment of code from the sl_customization.m file for the example model, slvnvdemo_mdladv. The example does not execute as shown without the additional content found in the sl_customization.m file.

mdladvObj = Simulink.ModelAdvisor.getModelAdvisor(system);
mdladvObj.setCheckResultStatus(true);

% define list view parameters
myLVParam = ModelAdvisor.ListViewParameter;
myLVParam.Name = 'Invalid font blocks'; % the name appeared at pull down filter
myLVParam.Data = get_param(searchResult,'object')';
myLVParam.Attributes = {'FontName'}; % name is default property
mdladvObj.setListViewParameters({myLVParam});
Was this topic helpful?