Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

ModelAdvisor.Task - Class: ModelAdvisor.Task
Package: ModelAdvisor

Define custom tasks

Syntax

task_obj = ModelAdvisor.Task(task_ID)

Description

task_obj = ModelAdvisor.Task(task_ID) creates a task object, task_obj, with a unique identifier, task_ID. task_ID must remain constant. If you do not specify task_ID, the Model Advisor assigns a random task_ID to the task object.

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 appears in the By Product > Simulink folder and in the By Task > Model Referencing folder in the Model Advisor tree.

When adding checks as tasks, the Model Advisor uses the task properties instead of the check properties, except for Visible and LicenseName.

Examples

In the following example, you create three task objects, MAT1, MAT2, and MAT3.

MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
MAT2 = ModelAdvisor.Task('com.mathworks.sample.TaskSample2');
MAT3 = ModelAdvisor.Task('com.mathworks.sample.TaskSample3');

See Also

Customizing the Model Advisor — Describes how to create custom checks
  


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