Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

...

icon

...

false

...

Download the Solution Example:

Solution file: TrendCustomDataSource.dbsln
Database file: TrendCustomDataSource.db


  • Solution Name:

...

  • Trend Custom Data Source
  • Software Version:

...

  • v10
  • Keywords:

...

  • TrendChart. GetSamples. Data.

...


Summary

This example shows how to use

...

TrendCharts, and solutions on basic archiving, creating and

...

charting of Data.

Image Added


Technical Information

When creating a TrendChart, you can associate a HistorianTag with a HistorianTable to supply data points. This configuration is done through the Historian section. These tables can either receive data from databases accessed via software platform or from a script within a script class, accessible under Scripts / Classes.

In this example, the GetSamples method is applied in two different ways:

  1. In the ServerMain ScriptClass, the method is used to create a custom signal and send it to the historian for plotting.

  2. In the MyClass ScriptClass, the method is used to retrieve data stored in a table within a database, which is then sent to the historian for plotting.

When creating a

...

TrendChart, if you have data logging

...

set up in

...

software platform (via HistorianTags) or if you

...

're using software platform with the OSIsoft PI System, the system will automatically

...

search for

...

archived

...

data to plot

...

.

...

If you want to

...

use data other than what the

...

system archives by default, you have

...

two options:

...

  • Populate the historian archive (

...

  • Microsoft SQL, or other

...

  • databases,

...

  • including the PI System) from another application.

...

  • Customize the GetSamples method used by the

...

One more advanced example of custom Trend chart drawing, where a curve model is created from a recipe: (TrendWithRecipe.rar).

Reference Information

  • TrendChart, as demonstrated in the ServerMain and MyClass ScriptClasses


In this section:

Page Tree
root@parent
spacesV10

...