Historic Data Read

Description

The Historic Data Read object sends a written data via a trigger. It can be used with the Historic Data Write in order to create graphs.



In Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Trigger

Trigger

Port that needs to be triggered to start the object


Out Ports

Position

Name

Message Type

Description

Position

Name

Message Type

Description

1

Array

Array

This port is being used to send out the resulting ‘Array’ based on the written Historic Data


Properties

Name

Description

Name

Description

Object Name

The name of the object on the canvas


Example

A way to use the Historic Data Read object is with the Line Graph object. Have a look at the following example. The Historic Data Read and Historic Data Write objects need to have the same name for data references. So either can leave them untitled or give them the same name.

We are using 3 Button objects and two Input Number objects. One Button object is connected to the Historic Data Delete object. By pressing that Button all the stored Historic Data will be deleted. The Historic Data Write object is used to store new data by adding a x and y coordinate and adding it by triggering the object via a button. Lastly to load the Historic Data we stored before into our Line Graph object we need the Historic Data Read object. When triggered it will give an array as an output and send it to the Line Graph object where all the data points we added before via the Historic Data Write object will be finally displayed.

You can see three buttons now, two numbers and the graph itself. To get an entry simply select a number for the x value and one for the y value. Then click “Write” to store the data in the object. After that click “Load Data” to display the data point in the Line Graph.

Next step we are going to add another data point. The Line Graph will connect all those added data points.

Adding another data point.

If you want to clear the graph, click the “Clear” button. This will clear all the data but only when you upload new data points to the Line Graph. So we hit “Clear”, chose 0 for x and y coordinate, click “Write” and then click “Load Data”. As you can see all data points before are deleted. With the Historic Data Delete object you can also delete only specific data points.