Skip to content

DataValue

Canonical path: o6.DataValue

DataValue

OPC UA DataValue: a value with its status and timestamps.

The value field is a Variant, so the same field accepts any built-in type, a structure, an array, or None for an empty value. The remaining fields are optional: assigning None clears one, and an unset timestamp reads back as None. An unset status reads back as GOOD, because the spec treats a missing StatusCode as Good with no info bits.

Every field can also be passed to the constructor as a keyword argument.

See Container Types.

Attributes

value property writable

value

The carried value, of any OPC UA type, or None when empty.

status property writable

status

The StatusCode of the value.

Reads back as GOOD when no status was set. Assign None to clear an earlier status.

sourceTimestamp property writable

sourceTimestamp

When the source produced the value, if the source reports it.

serverTimestamp property writable

serverTimestamp

When the server observed the value, if the server reports it.

sourcePicoseconds property writable

sourcePicoseconds

Sub-tick refinement of sourceTimestamp, in picoseconds.

serverPicoseconds property writable

serverPicoseconds

Sub-tick refinement of serverTimestamp, in picoseconds.

Functions

__init__

__init__(
    *,
    value=...,
    status=...,
    sourceTimestamp=...,
    serverTimestamp=...,
    sourcePicoseconds=...,
    serverPicoseconds=...
)