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.

Description

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:

CWDataSocket

ConnectTo, Update, Disconnect, OnStatusUpdated

CWData

Value, GetAttribute

Example Location

Samples\DataSocket\OPC

See Also

NI Demo OPC Client Example