Page 1 of 1

How to reset Tchart in runtime?

Posted: Fri May 26, 2023 10:45 am
by 16479670
Dear Tchart support team members,

I am using Tchart to plot data received over a USB link.

I would like to inform you that the chart is currently blocked after receiving a very large floating-point number. The error message displayed is 'floating point operation error'.

Could you advise me on how to resolve this issue without requiring a program restart, preferably with a runtime solution?

Thank you in advance

Re: How to reset Tchart in runtime?

Posted: Mon May 29, 2023 6:23 am
by yeray
Hello,

Could you please give us more information?
What TeeChart version are you using? Can you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.

Re: How to reset Tchart in runtime?

Posted: Mon Dec 18, 2023 6:17 pm
by 16479670
Dear Yeray,

Thank you for your reply.

Very sorry for my late reply. I had issues with my mailbox and lost a lot of emails.

The version of my Tchart is TeeChart Pro v2012/16 VCL.
I managed to eliminate error during the receive process, so my Tchart runs smoothly now. However, I still don't know how to reset a chart after a floating point error in order to get it working again.

Best regards

Re: How to reset Tchart in runtime?

Posted: Mon Dec 18, 2023 8:34 pm
by yeray
Hello,

If you want to prevent the error from happening, we'd need more info to try to reproduce the problem here, preferably a simple example project.
If you just want to remove the a point that has been added to a series, you can remove the point with the Delete(ValueIndex: Integer) function.
Or you can Clear the series or even ClearChart if you want to be more drastic.