Main Content

showopcevents

(To be removed) Event log summary for OPC events

Support for the OPC Data Access (DA) standard will be removed in a future release. Instead use OPC Unified Architecture (UA). See Compatibility Considerations.

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);

Version History

Introduced before R2006a

expand all

See Also