History DB trend

<< Click to Display Table of Contents >>

Navigation:  Project > Screens > Graphical objects > History DB library >

History DB trend

Previous pageReturn to chapter overviewNext page

This section applies to the following objects: History DB trend, HTTP history DB trend, MQTT history DB trend.

 

historydbtrend

 

Let's look at the "General" properties of this object  (properties not listed in the table are common to all objects, you can read about them here).

 

Property

ST script field

Description

History DB

historydbname

Choose History DB you want to bind to the trend.

Line width

linewidth

Width of the border's line.

Color

color

Color of the border's line.

Fill

fill

Select fill or not fill trend.

Fill color

fillcolor

Fill color of the trend.

Auto refresh

autorefresh

Check it if you want to update trend every time when new tag’s value added into database.

Curves

 

After clicking Collection you’ll see window:

 

curves

where:

Tag -  tag that you want to bind to this curve.

Name - name of the curve.

Line with - curve's line width.

Color - curve's line color.

Type - line's type:

Type 1 -  just draw the line.

Type 2 -  draw line with filling till axis X.

Type 3 -  draw a ladder line.

Type 4 -  draw a filled ladder line.

Type 5 - draw the line with smoothed effect (don't use for big amount of history data).

Type 6 - draw line with filling till axis X and with smoothed effect (don't use for big amount of history data).

Default period (min)

defaultperiod

Default time period of the trend (end time - begin time).

 

Also History DB Trend object has several properties that you can’t setup by using settings dialog box, but you can setup by using ST script:

begin - start time for trend information. Time represented in minutes from current period. (start time = current time - begin).

end - finish time for trend information. Time represented in minutes from current period. (finish time = current time - end).

filename - name of the report’s file.

savereport - when this value become true trend’s report will be created.

begindatetime - start time for trend information. Time is represented in milliseconds from 1 January 1970.

enddatetime - finish time for trend information.  Time is represented in milliseconds from 1 January 1970.  

disablesavereport - disable "Save report" button in the dialog.

disableprint -  disable "Print" report button in the dialog.

duration - duration of the history time line in minutes. It works only when auto refresh is enabled. End time will be current time and begin time will be current time minus duration in minutes.

 

Properties from the "Grid" tab are described here.

Properties from the "Fill Color" tab are described here.

Properties from the "Flash" tab are described here.

Properties from the "Rotation" tab are described here.

Properties from the "Motion" tab are described here.

Properties from the "Visibility" tab are described here.