val = oOpcData.Item(id).Value
oOpcData.Item(id).Value = val
|id||(Variant) Specifies the variable. The value is: |
- Name (String, case sensitive text, for example "a1") or
- Index (Long, zero-based index)
The PmVar object includes information about the variable (value, name, index, etc.).
This method enables access only to variables (with corresponding data extension) that are created directly in this object (own variables). In fact also other variables from PmaData objects are registered into this object - those that have corresponding data extension configured with path to this object. All data extensions registered in this object can be accessed by method GetVarExtensions.
var val = oOpcData.Item(0).Value;
var tim = oOpcData.Item(0).TimeStamp;
var qual = oOpcData.Item(0).Quality;
Example see Data vector transfer