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.

showopcevents

Event log summary for OPC Toolbox events

Syntax

showopcevents(DAObj)
showopcevents(DAObj,Index)
showopcevents(Struct)
showopcevents(Struct,Index)

Description

showopcevents(DAObj) displays a summary of the event log for the opcda object specified by DAObj.

showopcevents(DAObj,Index) displays a summary of the events with index of Index. Index can be the numerical index, a character vector, or a cell array of character vectors that specifies the type of event. Valid events are CancelAsync, Error, ReadAsync, Shutdown, Start, Stop, and WriteAsync.

showopcevents(Struct) and showopcevents(Struct,Index) display a summary of the events with index of Index for the event structure, Struct. You can obtain an event structure from the object's EventLog property.

The display summary includes the event type, the local time the event occurred, and additional event-specific information.

Examples

Configure a logging task for the Matrikon™ Simulation Server, then display the event log to find timing information for the logging task:

da = opcda('localhost','Matrikon.OPC.Simulation');
connect(da)
grp = addgroup(da);
grp.RecordsToAcquire = 10;
itm = additem(grp,'Bucket Brigade.Real8');
start(grp);
wait(grp);
showopcevents(da);

See Also

Introduced before R2006a

Was this topic helpful?