Simple trend example

<< Click to Display Table of Contents >>

Navigation:  Examples > Trends >

Simple trend example

Previous pageReturn to chapter overviewNext page

Quite often you need to look at the dynamics of the values of certain parameters (tags). We can display this data on a chart using graphical objects; in the example below we will use the Trend DB.

1. Suppose we want to look at the dynamics of values for a certain tag Tag1, the values of which will be collected in the general SQLLite database:

 

tag1generalproperties

tag1historyproperties

 

2. We want to display history information about Tag1 values on the Trend DB . Let's place the Trend DB object on the screen:

 

trenddbchoose

 

3. Bind the tag to our trend. To do this, open the properties of the  Trend DB and fill in the “Collection” in the “Curves” field:

 

trenddbproperties

curvecollection

 

 

4. Run simulation to check the settings. Within a few minutes, set different tag values to keep the information in the database. Then, by clicking on the trend, we will select the period for which we want to obtain data. In our example, we will select data from the previous few minutes when we recorded data.

 

 

trendsimple

 

You can download this project here.