| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Verification and Validation |
| Contents | Index |
| Learn more about Simulink Verification and Validation |
Specify check used in task
setCheck(task, check_ID)
setCheck(task, check_ID) specifies the check to use in the task.
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.
| task | Instantiation of the ModelAdvisor.Task class |
| check_ID | A unique string that identifies the check to use in the task |
MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
setCheck(MAT1, 'com.mathworks.sample.Check1');
![]() | setCallbackFcn (ModelAdvisor.Check) | setCheckText (ModelAdvisor.FormatTemplate) | ![]() |

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 |