LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i restart the VI without erasing the plotted graph

I have made a program  to plot a graph at a particular condition. But as soon as the program completes. when I restart the program the graph starts again , there is no older graph to be see. So. I want to change the program such that the pgraph starts plotting from the position it stops in the previous session. Please kindly help me.

0 Kudos
Message 1 of 6
(2,442 Views)

Hi,

 

you need to store the data somewhere, a file on disc might be a good option.

 

When the program is stopped you save the current data to a file. On the start of the program you load the file and display the stored data...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,435 Views)

please reply some good options I want to continue from where it stopped

0 Kudos
Message 3 of 6
(2,387 Views)
I thought Gerd's suggestion was excellent. What don't you understand or what have you tried? This is a pretty basic task.
0 Kudos
Message 4 of 6
(2,379 Views)

I need to get start the graph from the same point without erasing it.Please reply

0 Kudos
Message 5 of 6
(2,369 Views)
The last thing your program should do is save the data. When started again, the first thing out will do is read the file and write to the graph. As the program runs, you append new data the array you are writing to the graph. Since a graph does not retain any history, you must be doing something similar now.
0 Kudos
Message 6 of 6
(2,361 Views)