| Simulink® Verification and Validation™ | ![]() |
You define actions to take when Model Advisor checks do not pass. Users access actions by clicking the action button that you define in the Model Advisor window.
action_obj = ModelAdvisor.Action
A variable representing the action object you create.
| Name | Description |
|---|---|
| setCallbackFcn | Specify action callback function |
Specify action callback function
action_obj.setCallbackFcn(@handle)
A variable representing the action object.
A handle to an action callback function.
The setCallbackFcn method specifies the callback function to use with the action 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.
rec = ModelAdvisor.Check('com.mathworks.sample.Check1');
% define action (fix) operation
myAction = ModelAdvisor.Action;
%Specify a callback function for the action
myAction.setCallbackFcn(@sampleActionCB);
myAction.Name='Fix block fonts';
myAction.Description=...
'Click the button to update all blocks with specified font';
rec.setAction(myAction);![]() | mcdcinfo | ModelAdvisor.Check | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |