NormalizedInfo

class c104.NormalizedInfo

This class represents all specific normalized measurement point information

__init__(self: c104.NormalizedInfo, actual: c104.NormalizedFloat, quality: c104.Quality = c104.Quality(), recorded_at: datetime.datetime = None) None

create a new normalized measurement info

Parameters:
  • actual (c104.NormalizedFloat) – Actual measurement value [-1.f, 1.f]

  • quality (c104.Quality) – Quality information

  • recorded_at (datetime.datetime, optional) – Timestamp contained in the protocol message, or None if the protocol message type does not contain a timestamp.

Example

>>> normalized_info = c104.NormalizedInfo(actual=c104.NormalizedFloat(23.45), quality=c104.Quality.Invalid, recorded_at=datetime.datetime.now(datetime.utc))
property actual

the value (read-only)

Type:

c104.NormalizedFloat

property is_readonly

test if the information is read-only

Type:

bool

property processed_at

timestamp with milliseconds of last local information processing (read-only)

Type:

datetime.datetime

property quality

the quality (read-only)

The setter is available via point.quality=xyz

Type:

c104.Quality

property recorded_at

timestamp with milliseconds transported with the value itself or None (read-only)

Type:

datetime.datetime | None

property value

references property actual (read-only)

The setter is available via point.value=xyz

Type:

c104.NormalizedFloat