Skip to Main Content Skip to Search
Product Documentation

ModelAdvisor.Check class - Package: ModelAdvisor

Create custom checks

Description

The ModelAdvisor.Check class creates a Model Advisor check object. All checks must have an associated ModelAdvisor.Task object to be displayed in the Model Advisor tree.

You can use one ModelAdvisor.Check object in multiple ModelAdvisor.Task objects, allowing you to place the same check in multiple locations in the Model Advisor tree. For example, Check for implicit signal resolution is displayed in the By Product > Simulink folder and in the By Task > Model Referencing folder in the Model Advisor tree.

When you use checks in task definitions, the following rules apply:

Construction

ModelAdvisor.CheckCreate custom checks

Methods

getIDReturn check identifier
setActionSpecify action for check
setCallbackFcnSpecify callback function for check
setInputParametersSpecify input parameters for check
setInputParametersLayoutGridSpecify layout grid for input parameters

Properties

CallbackContextSpecify when to run check
CallbackHandleCallback function handle for check
CallbackStyleCallback function type
EmitInputParametersToReportDisplay check input parameters in the Model Advisor report
EnableIndicate whether user can enable or disable check
IDIdentifier for check
LicenseNameProduct license names required to display and run check
ListViewVisibleStatus of Explore Result button
ResultResults cell array
supportExclusionSet to support exclusions
TitleName of check
TitleTipsDescription of check
ValueStatus of check
VisibleIndicate to display or hide check

Copy Semantics

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

Examples

rec = ModelAdvisor.Check('com.mathworks.sample.Check1');

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS