Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

register - Class: ModelAdvisor.Root
Package: ModelAdvisor

Register object in Model Advisor root

Syntax

register(MAobj, obj)

Description

register(MAobj, obj) registers the object, obj, in the root object MAobj.

In the Model Advisor memory, the register method registers the following types of objects:

The register method places objects in the Model Advisor memory that you use in other functions. The register method does not place objects in the Model Advisor tree.

Example

mdladvRoot = ModelAdvisor.Root;

MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
MAT1.DisplayName='Example task with input parameter and auto-fix ability';
MAT1.setCheck('com.mathworks.sample.Check1');
mdladvRoot.register(MAT1);

MAT2 = ModelAdvisor.Task('com.mathworks.sample.TaskSample2');
MAT2.DisplayName='Example task 2';
MAT2.setCheck('com.mathworks.sample.Check2');
mdladvRoot.register(MAT2);

MAT3 = ModelAdvisor.Task('com.mathworks.sample.TaskSample3');
MAT3.DisplayName='Example task 3';
MAT3.setCheck('com.mathworks.sample.Check3');
mdladvRoot.register(MAT3)
  


Related Products & Applications

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

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