Package: ModelAdvisor
Superclasses:
Add list view parameters to custom checks
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.
ModelAdvisor.ListViewParameter | Add list view parameters to custom checks |
Attributes | Attributes to display in Model Advisor Report Explorer |
Data | Objects in Model Advisor Result Explorer |
Name | Drop-down list entry |
Handle. To learn how this affects your use of the class, see Copying Objects (MATLAB) in the MATLAB® Programming Fundamentals documentation.
The following example is a fragment of code from a check definition function. The example does not execute as shown without the full check definition function.
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});