Author Topic: ChartBySampling over flow?  (Read 1248 times)

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
ChartBySampling over flow?
« on: October 14, 2017, 11:38:02 PM »
Hello,
ChartBySampling seems to overflow after several hours. see attached file.
Is there a solution by setting change?

Best regards,
Taka

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: ChartBySampling over flow?
« Reply #1 on: October 15, 2017, 10:04:06 AM »
Are you using PLCAddressYAxisMin ? I did see this one time before when I was using PLCAddressYAxisMin. I will have to find that application to see what was done to fix it. Are you using version 3.99x?

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: ChartBySampling over flow?
« Reply #2 on: October 15, 2017, 08:33:27 PM »
Hi Archie,
Thank you for your support!
I did not use PLCAddressYAxisMin on v3.99x.
I sent error log txt for you send by e-mail.
Thank you!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: ChartBySampling over flow?
« Reply #3 on: October 15, 2017, 09:27:33 PM »
Based on this:

https://social.msdn.microsoft.com/Forums/en-US/7ed39eb4-2b97-4e7f-95db-256786629f30/axis-object-the-minimum-value-of-the-axis-is-greater-than-the-largest-data-point-value?forum=MSWinWebChart

I would say to try adding this line of code in the form load event handler. With the form open in designer, double click in a blank area to get to the event, then enter this code:

Chart1.AlignDataPointsByAxisLabel()

Replacing Chart1 with the name of your chart (possibly ChartBySampling1)

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: ChartBySampling over flow?
« Reply #4 on: October 20, 2017, 10:59:00 PM »
Hi Archie,
Thank you for your support.
The problem solved.
By the way, Can I set it up sample rate without ComComponent?
Best regards,