Xentara v1.2.1
User Manual
Loading...
Searching...
No Matches
JSON Format for Data Points

A JSON object describing a data point using a single I/O point has the following syntax:

{
"@DataPoint": {
"id": "Temperature",
"uuid": "7fc18ee3-d2b7-43ac-b9ef-7a217f509436",
"io": "Building.Rack.DAQ.AI 1/06"
}
}

Object Members
idA string value containing the ID of the data point. The ID is used to construct the data point’s primary key.
uuidA string value containing the unique UUID of the data point.
unitsAn 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.
displayNameAn 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.
ioA 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:

{
"@DataPoint": {
...
"io": {
"input": "Building.Rack.DAQ.AI 2/04",
"output": "Building.Rack.DAQ.AO 3/01"
}
}
}

“io” Object Members
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.