Using the Peakboard Edge data source
If the Peakboard Edge data source is dragged onto the design surface, a table with all stored Edge devices and the associated information is displayed (in this view only placeholder information). Each row of the table corresponds to a Peakboard Edge. The columns correspond to the information to which the respective Peakboard Edge has access.
Further processing within the visualization is done analogous to any other data source within Peakboards (bindings to controls, scripts, data flows, … ). The individual Edge can be accessed either via its index in the Edge data source (visible in the interface for managing the Edge data source, starting with 0) or the specified name, in the above example “EdgeName”.
Binding to controls
To bind the content of a control (e.g. a text field) to a field from the Edge data source (e.g. the Edge name, or the text value of the Edge), access is only possible via the index. The following example illustrates this. Here the name of the Edge is to be displayed in a text field. For this purpose, “Edge” is selected as data source. Next, the column “Name” is selected within the data source. Afterwards the “Row in data source” (“Source Row”) determines by which Edge the name is used.
In scripts individual PB Edge can be addressed by their name. This means concretely:
There are also two functions:
Play Sound (data.Edge.
Set Output pins (data.Edge.
With the PlaySound function the sound with the number
With the SetOutputPins function the relays for the corresponding pins can be switched. The relay with the number
The script accesses are also visible in the script tree, which is located in the script editor on the right side and shown in the following picture.