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.

Events and Callbacks

Execute functions triggered by specific events

Functions

opccallbackEvent information for OPC Toolbox callbacks
cleareventlogClear event log, discarding all events
showopceventsEvent log summary for OPC Toolbox events

Properties

ErrorFcnCallback function file to execute when error event occurs
EventLogEvent information log
EventLogMaxMaximum number of events to store in event log
ShutDownFcnCallback function file to execute when OPC server shuts down
TimerFcnCallback function file to execute when predefined period passes
TimerPeriodPeriod between timer events
CancelAsyncFcnCallback function file to execute when asynchronous operation is canceled
DataChangeFcnCallback function file to execute when data change event occurs
ReadAsyncFcnCallback function file to execute when asynchronous read completes
RecordsAcquiredFcnCallback function file to execute when RecordsAcquired event occurs
RecordsAcquiredFcnCountNumber of records to acquire before RecordsAcquired event occurs
StartFcnCallback function file to execute immediately before logging starts
StopFcnCallback function file to execute immediately after logging stops
WriteAsyncFcnCallback function file to execute when asynchronous write completes

Examples and How To

Use the Default Callback Function

Introduces events and callbacks by showing a simple example

Retrieve Event Information

Describes the information generated with each event and describes how to access it

Create and Execute Callback Functions

Describes how to write a callback function and associate it with an event callback

Concepts

Event Types

Defines all the event types supported by the toolbox

Was this topic helpful?