Gets the value of the specified data point.

public object VAL( 
string name 
)

Parameters

name

Type: string

The fully-qualified name of the data point.

Return Value

The value of the data point. The value can be numeric or text.
VAL returns the value of a data point. To work with the data point as an object (to access _members--IVqt properties and IDataTable), use GET.

VAL("name") is identical to GET("name").Value. It is simply shorthand for this common case.

This example illustrates how to get data point values and perform calculations. Since VAL triggers an automatic script execution, the difference between the two data point values is recalculated every time either changes.
 Math.Abs(VAL("DataPid:PID1.Sp") - VAL("DataPid:PID1.Pv"));