AdvancedHMI Software

General Category => Support Questions => Topic started by: Taka_Y on October 14, 2017, 11:38:02 PM

Title: ChartBySampling over flow?
Post by: Taka_Y 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
Title: Re: ChartBySampling over flow?
Post by: Archie 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?
Title: Re: ChartBySampling over flow?
Post by: Taka_Y 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!
Title: Re: ChartBySampling over flow?
Post by: Archie 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)
Title: Re: ChartBySampling over flow?
Post by: Taka_Y 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,