Learn here, how you can set up a data structure.
The data structure is represented by nodes. Depending on the node type more nodes can be nested infinitely in terms of number and depth.
Node types
The following node types are available.
|
Symbol |
Name |
|---|---|
|
Object |
|
|
Array |
|
|
Property |
|
|
Attribute (XML mode only) |
The node type is indicated by an icon in front of the name or as a tooltip when hovering the mouse over the node.
To build a data structure proceed as follows:
-
Before configuring a data structure the root node must be defined. Therefore, click on Set up root node in the Name column.
-
A dialog opens, providing the option to either add the root node as an object or as an array. In most cases, the root node is an object. Select Object, for example, and click <OK>. You cannot enter a name because the Name field is not available.

-
Click on Add to root... to add more nodes.

-
In the following dialog select the desired node type for each, enter or select the additional information and add the node by clicking on <OK>.

-
In this way, arrange your data structure.

Properties of node types
Note |
|
|---|---|
|
You can always add nodes of the types Object, Array or Property to objects. In XML mode you can additionally choose the Attribute type. |
|
Name
The node name can be a static value or a signal.
Enter the static name manually in the field.
The node names on the same tree level must be unique. If you enter duplicate names, then an error message pops up and the entry is rejected.
If you want to use a signal, then click on the arrow icon for the drop-down list and select the desired signal from the signal tree. The signal name will be used for node name.

Note |
|
|---|---|
|
Nodes whose parent node is an array cannot have a name. Nodes or items in an array will always be added with their value. To be able to define a name for a new subordinated node, first add an object to the array and then add the new node to that object. |
|
Value type and value
These two parameters are available only for node type Property. Object and Array do not offer these settings.
The following value types are available for Property:
|
Value type |
Static value |
Value from signal |
|---|---|---|
|
String |
Select Static value and enter text |
Select text signal |
|
Number |
Select Static value and enter number |
Select analog signal |
|
Boolean |
Select True or False |
Select digital signal |

Note |
|
|---|---|
|
Because XML does not have the concept of data types, Booleans are always resolved to true or false in the XML mode.
|
|
Remove nodes
In order to delete a node from the data structure, make a right mouse click on the node in question and select Remove [x] in the context menu.
Alternatively, you can press the <Del> key while the node in question is selected in the data structure tree. To prevent unintentional removal a warning pops up.


