ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear xy graph...

Hi,

Does anyone know how to clear xy graph
at the beginning of a new run?

To me, the old graph stays on until next
update. But I really wish I could clear
that up when I hit execution button.

Thanks...

K.C.
0 Kudos
Message 1 of 6
(3,700 Views)
Hi Kchen,

ou can create a local variable to that XY graph and then in the begining of your program you wire a cluster constant (all zeros). That would clear the stuff from the graph. hope this makes sense.

A Rafiq
0 Kudos
Message 2 of 6
(3,700 Views)
An example of this can be found by following the Resource Library menu to LabVIEW, then User Interface, then Graphing/Plotting, then How to Clear Charts and Graphs. It suggests loading the History Data property of the chart or graph with all zeros at the completion of the vi. I was struggling with the same issue just this morning. I gave this a try and it works beautifully. Good Luck.
0 Kudos
Message 3 of 6
(3,700 Views)
use
if u r using NI GRAPH THEN
USE
cwgraph1.cleardata

IT WILL CLEAR THE GRAPH
0 Kudos
Message 4 of 6
(3,700 Views)
hi
while searching for my problem of clearing graph,
i got your ans.
i am very new to labView,i have labview7
i don't understand
what is this
cwgraph1.cleardata

please give tell me indetail

thanks in advance
shital
0 Kudos
Message 5 of 6
(3,700 Views)
it's just a property node. like if you were to run a macro then look at the code for it. this is what it would look like. Just do what A rafiq said and you'll be fine.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 6
(3,700 Views)