Skip to Main Content Skip to Search
Product Documentation

addHeaderReportFcn - Class: cgv.CGV
Package: cgv

Add callback function to execute before executing any input data in object

Syntax

cgvObj.addHeaderReportFcn(CallbackFcn)

Description

cgvObj.addHeaderReportFcn(CallbackFcn) adds a callback function to cgvObj. cgvObj is a handle to a cgv.CGV object. cgv.CGV.run calls CallbackFcn before executing any input data included in cgvObj. The callback function signature is:

CallbackFcn(cgvObj)

Examples

The callback function, HeaderReportFcn, is added to cgv.CGV object, cgvObj

cgvObj.addHeaderReportFcn(@HeaderReportFcn);

where HeaderReportFcn is defined as:

function HeaderReportFcn(cgvObj)
...
end

See Also

cgv.CGV.run

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS