RtValue object

The RtValue object holds the 'value with status' results of the Read and ReadAsync function calls for the DLSYS and DVSYS objects. The following values are supported for the RtValue object in DeltaV Live graphics expressions and scripting.

RtValue object values

Value Description
.Value Returns the value determined by the <read-as suffix>. This value is typically a string or number, but can be any type.
.Status Returns the status, as a number, of the parameter's read attempt.

0: Indicates the .Value is usable and "good" in all respects.

The least significant 32 bits are treated as bit-wise indicators of the zero or more 'abnormal' status conditions present for this RtValue.

Note:
It is recommended that you use the ValueStatus Enum Object to mask or test conditions reflected in a .Status value.

Usage example

let modOption = DLSYS.Read("FIC101/OPTION.CV");
let groupVisibility = 
      (modOption.Status.Number == Constants.ValueStatus.Good) &&
       modOption.Value >= 1 &&
       modOption.Value <= 3)