From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i clear a waveform chart after i press stop?

I attached what I have so far.
I'm taking readings from 3 thermocouples simultaniously.
I then graph and log the data in real time.
 
I would like it if after i press stop, the graph resets. Then when i press start, the graph starts from the beginning.
 
Any ideas how to do this?
Cory K
0 Kudos
Message 1 of 4
(4,847 Views)
The property node has an entry for the chart history. Wire an empty array to clear it, or any other values to initialize the history. There are also examples in examples/general/graph that show how to do this and other things with graphs.
 
There is a code example here
 
In this link  there aare examples of clearing a graph/chart by pressing a button.
 


Message Edited by JoeLabView on 05-27-2008 12:35 PM
0 Kudos
Message 2 of 4
(4,841 Views)

On the False side of your measure case, use a Property Node for each chart.  Property should be History Data, set it to write, and wire an empty array to it.  This will clear the graph.  I'd also use a shift register wired to a boolean so that you don't keep writing to the properties.  Set the boolean to true on the True side of your measure case.

 

 



Message Edited by Mythilt on 05-27-2008 12:39 PM
Jon D
Certified LabVIEW Developer.
0 Kudos
Message 3 of 4
(4,839 Views)

thanks

that worked really well

Cory K
0 Kudos
Message 4 of 4
(4,801 Views)