Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

setCallbackFcn - Class: ModelAdvisor.Check
Package: ModelAdvisor

Specify callback function for check

Syntax

setCallbackFcn(check_obj, @handle, context, style)

Description

setCallbackFcn(check_obj, @handle, context, style) specifies the callback function to use with the check, check_obj.

Inputs

check_obj

Instantiation of the ModelAdvisor.Check class

handle

Handle to a check callback function

context

Context for checking the model or subsystem:

  • 'None' — No special requirements.

  • 'PostCompile' — The model must be compiled.

style

Type of callback function:

  • 'StyleOne' — Simple check callback function, for formatting results using template

  • 'StyleTwo' — Detailed check callback function

  • 'StyleThree' — Check callback functions with hyperlinked results

Example

% --- sample check 1
rec = ModelAdvisor.Check('com.mathworks.sample.Check1');
rec.Title = 'Check Simulink block font';
rec.TitleTips = 'Example style three callback';
rec.setCallbackFcn(@SampleStyleThreeCallback,'None','StyleThree');

See Also

Creating Callback Functions and Results — Describes how to create check callback functions
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