Example: OPC Quality and Timestamp Attributes

NI DataSocket

Example: OPC Quality and Timestamp Attributes

Connects to an OPC item and uses the Quality and Timestamp attributes.


This example uses a Timer event to plot data, rather than using the OnDataUpdated event so that you can chart data constantly (with timestamps) even if the data has not changed. This is useful for correctly making a square wave chart.

Controls, Properties, Methods, and Events

This example demonstrates the following controls, properties, methods, and events:


ConnectTo, Update, Disconnect, OnStatusUpdated


Value, GetAttribute

Example Location


See Also

NI Demo OPC Client Example