Author Topic: Basic Trend Chart Sampling time  (Read 2417 times)

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Basic Trend Chart Sampling time
« on: April 02, 2016, 07:01:00 AM »
Is there a way to adjust the sampling rate and display time on the Basic trend chart? It appears to display about 5 minutes worth of data, sampling every couple seconds. I would like to sample every 5 minutes and display 24 hours of data.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Basic Trend Chart Sampling time
« Reply #1 on: April 02, 2016, 08:05:49 AM »
The PollRateOverride of the driver sets the sample rate. If you want a different rate than everything else, add another driver instance and set the ComComponent property of the chart to point to the other driver. The PollRateOverride is in ms, so for 5 minutes you would have to set it to 3000000

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Basic Trend Chart Sampling time
« Reply #2 on: April 02, 2016, 09:31:23 AM »
Thanks Archie!!! Being as I want to capture 24 hours of data once every 5 minutes I assume i would set the max points for 288 in the trend properties. Is that correct?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Basic Trend Chart Sampling time
« Reply #3 on: April 02, 2016, 09:44:14 AM »
Yes, that is correct.

There is another possible option that may be better. Can you store the 288 points in your PLC/device in an array or consecutive addresses? If so, you can use the ChartByArray.