Xentara v1.2.1
User Manual
|
A JSON object describing a data point using a single I/O point has the following syntax:
id | A string value containing the ID of the data point. The ID is used to construct the data point’s primary key. |
uuid | A string value containing the unique UUID of the data point. |
units | An optional string value containing the physical units of the data point’s value, like “kg” or “°C”. If you omit the “units” member, then the data point will have no units, and the “units” attribute will contain an empty string. |
displayName | An optional string value containing the display name of for the data point. If you omit the “displayName” member, then the primary key will be used as display name. |
io | A string value describing the I/O point that the data point should use. The string value must contain the primary key of the I/O point. The data point will be readable if the I/O point supports the input direction, and writable if the I/O point supports the output direction. |
For more control over the input and output, the I/O points for input and output can be specified separately. This allows using different I/O points for input and output, as well as suppressing one of the data directions of the I/O point (e.g. making a data point read-only even though the I/O point supports reading and writing).
To specify separate I/O points for input and output, specify a JSON object with “input” and “output” members as “io” instead of a string:
input | An optional string value describing the I/O point that should be used as input. The string value must contain the primary key of the I/O point. The given I/O point must support the input direction. If you omit the “input” member, the data point will not be readable. |
output | An optional string value describing the I/O point that should be used for output. The string value must contain the primary key of the I/O point. The given I/O point must support the output direction. If you omit the “output” member, the data point will not be writable. |