Example: Simple CWBinding

Measurement Studio User Interface

Example: Simple CWBinding

Displays data from a data source specified by a URL on a Measurement Studio user interface control without any code.

Description

The graph in this example uses integrated DataSocket connectivity to connect a property from the control to a data item specified by a URL. Integrated DataSocket connectivity works through CWBinding objects. The actual connection between the external data item and the control property is called a binding.

In this example, the Graph.YDataAppend property is bound to the data source at opc:/National Instruments.OPCDemo/sine, an item on the National Instruments OPC Demo server that was installed with Measurement Studio. Setting the YDataAppend property has the same effect as calling the ChartY method to chart new data.

Refer to the CWBinding Features and CWBinding Reader examples for more information about creating bindings and specifying URLs.

Example Location

Samples\UI\Common\CWBinding

See Also

CWBinding Reader Example

CWBinding Features Example