opccallback - Event information for OPC Toolbox™ software callbacks

Syntax

opccallback(Obj,Event)

Description

opccallback(Obj,Event) displays a message that contains information about an OPC Toolbox software event. The type of event, the time the event occurred, and the related data for that event are displayed in the MATLAB® Command Window.

Obj is the object associated with the event. Event is a structure that contains the Type and Data fields. Type is the event type. Data is a structure containing event-specific information.

opccallback is an example callback function. Use this callback function as a template for writing your own callback function. By default a dagroup object's ReadAsyncFcn, WriteAsyncFcn, and CancelAsyncFcn are set to @opccallback, and an opcda object's ErrorFcn and ShutDownFcn are set to @opccallback.

See Also

showopcevents

  


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