Xentara v2.0.4
User Manual
Registers

Registers are skill data points that store a settable value. The register is initialized with a default value, and can be modified by writing to its “value” attribute.

Registers can be used if a value that is written by some external source, like the Xentara Web Service, needs to be accessed later by other components. The value can then be stored in a register, and read back as needed.

Accessing Registers

Registers have the following members:

Attributes
keyThe register’s primary key.
nameThe register’s name. The name is the last component of the primary key.
UUIDThe unique UUID of the register.
typeThe register’s element type. For registers, this is always “register”.
categoryThe register’s category. For registers, this is always “data point”.
valueThe current value of the register. This attribute can be written to to change the stored value.
updateTimeThe last time a value was written to the register. This attribute is always the same as the writeTime attribute.
writeTimeThe last time a value was written to the register. This attribute is always the same as the updateTime attribute.
qualityThe quality of the register value. The quality of a register is always “good” and never changes.
changeTimeThe last time the value changed. Contrary to the writeTime and updateTime attribute, this time stamp is not updated if the same value is written multiple times.
Events
writtenThis event is raised whenever the value is written, whether it changed or not.
changedThis event would normally be raised when either the value or the quality changes. Since the quality of a register is always “good”, and never changes, this event is equivalent to the value event.