![]() |
OTX Reference
|
|
Container for a specific measurement More...
Container for a specific measurement
Measurement is used as a container for a specific measurement. It contains a timestamp of the measurement, the measurement status, and the measurand. The inner values of a measurement may by the terms GetMeasurementQuantity, GetMeasurementTimestamp, GetMeasurementStatus, IsValidMeasurement and GetMeasurementValue are used.
Since the Measurement data type has no initialisation parts, a Measurement can not be declared constant.
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined (should not be used) | |
ToInteger | Undefined (should not be used) | |
ToFloat | Undefined (should not be used) | |
ToString | Returns the value of measurement variable | Measurement measureMentVariable = 1 km; String s = ToString(measureMentVariable); // Returns "1 km" |
ToByteField | Undefined (should not be used) |
Sample