Gets the data point with the specified name.

public static IVqt GetPoint( 
string pointName 
)

Parameters

pointName

Type: string

The name of the data point.

Return Value

Returns a reference to a data point that supports the IVqt interface.
DataHub WebView uses both both local and server-side data points. Local data points are managed by the WebView client and do not persist. Server-side data points are managed by DataHub.

For a comprehensive discussion of how to work with data points in script, see Working with Data Points.

This example shows how to retrieve a point from the DataHub and display its current attributes in a message dialog.
 var pv = WV.GetPoint("DataPid:PID1.Pv");
 
 var msg = string.Format("{0} was updated to {1:0.000} at {2:hh:mm:ss tt}.",
   pv.PointName, pv.Value, pv.TimestampAsLocalTime);
 
 WV.MsgBox(msg, pv.PointName);