01-31-2023 03:21 AM
I have a designed a program to plot the frequency and the amplitude from the signal generator. The thing is when I re-run the program the plotted lines in the XY graph and plot are still remains in it. It's not clearing out. When I re-run the program, the new values are overlapping with the previous data. So, it's every time I need to close the window and open it again. Is there any solution for this issue?
01-31-2023 03:37 AM
Hi jrengg,
@jrengg wrote:
Is there any solution for this issue?
Yes!
As a graph has no own data buffer you need to clear the buffer holding your plot data!
(In case you use a chart instead of a graph: clear the chart history using a property node. And next time please use the correct wording…)
01-31-2023 04:32 AM
Hi GerdW,
Thanks for you comment. I will check on it.
02-01-2023 08:11 PM
A Graph shows what you write to it. Try doing the following:
Bob Schor
02-01-2023 08:25 PM
If you are building the graph data in a shift register, make sure it is initialized.
(An uninitialized shift register will retain data between runs.)
We can give significantly more specific advice if you show us your code. There are dozens of ways to chart xy data, and they all have different solutions.