Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

opccallback

Event information for OPC Toolbox callbacks

Syntax

opccallback(Obj,Event)

Description

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

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, @opccallback is the value for the ReadAsyncFcn, WriteAsyncFcn, and CancelAsyncFcn properties of a dagroup object, and for the ErrorFcn and ShutDownFcn properties of an opcda object.

Introduced before R2006a

Was this topic helpful?