| Block Group: | Data Services |
| Icon: | no icon |
The Load Value block retrieves information about the value of a data node.
To automatically create a Load Value block for a node at a particular path, you can drag that node from the Metrics panel into the dataflow window.
For information on using dataflow blocks, see Dataflow.
The following properties of the Load Value block can take input and give output.
path specifies the node for which to return information.
subpath (optional) is appended to path, separated by /, to form the node path.
enabled specifies whether the Load Value block updates when the node’s value changes. The default is TRUE.
qos determines persistence. qos values other than 0 apply only to DSA data; for other data services, 0 is used.
For a qos of 1, 2, or 3, you can access table cells by binding the value property to a Table block. The table has timestamp and value columns.
format specifies a format string applied to the value. The result is returned in formatted. Text in square brackets is replaced:
[value], [unit], [status] and other fields of the value update are replaced by their values. [value.key] reads a key (or index) of a map or list value.[$config] and [@attribute] are replaced by a DSA config or attribute of the node.[auto] or [formatted] is replaced by the default formatted value.[0.00] or [#,##0], formats the numeric value.If format is blank, the default formatting is used.
The following properties of the Load Value block can give output but cannot take input.
value returns the current value of the node, if enabled is TRUE. Returns the last collected value of the node, if enabled is false. If the value is a table on a DSA node, the table is loaded and returned.
unit returns the units of the node.
formatted returns the value formatted by format. If format is blank, for example, for a numeric value, it returns a string that includes units. For an enum or boolean value, it returns the string associated with the value.
status returns the status of the node, if applicable, such as “down” or “overridden.”
error returns the error message, if any.
lastUpdate returns a string indicating when the node was last updated.
The following image demonstrates how to create a Load Value block by dragging a node to the dataflow window.