| Simulink® Verification and Validation™ | ![]() |
The ModelAdvisor.FactoryGroup class defines a new subfolder to add to the By Task folder.
fg_obj = ModelAdvisor.FactoryGroup(fg_ID)
A variable representing the factory group object you are creating.
A unique string that identifies the group. The value of fg_ID must remain constant.
| Name | Description |
|---|---|
| addCheck | Add check to group |
Add check to group
fg_obj.addCheck(check_ID)
A variable representing the factory group object.
The unique identification string representing the check to add.
The addCheck method adds checks, identified by check_ID, to the folder specified by the group object.
Note The following example is a fragment of code from the sl_customization.m file for the demo model slvnvdemo_mdladv. The example does not execute as shown without the additional content found in the sl_customization.m file. |
See Demo and Code Example for more information.
function defineModelAdvisorTasks
mdladvRoot = ModelAdvisor.Root;
% --- sample factory group
rec = ModelAdvisor.FactoryGroup('com.mathworks.sample.factorygroup');
rec.DisplayName='Demo Factory Group';
rec.Description='Demo Factory Group';
rec.addCheck('com.mathworks.sample.Check1');
rec.addCheck('com.mathworks.sample.Check2');
rec.addCheck('com.mathworks.sample.Check3');
mdladvRoot.publish(rec); % publish inside By Task![]() | ModelAdvisor.Check | ModelAdvisor.Group | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |