LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In labview how do I cleardata from chart

I am completely new to LabView and having what is probably a very basic problem. I have a button that starts collecting data into an array this is then displayed in a chart. when I stop the button and then restart it I want the graph to clear but it keeps the old array info and then adds the new data to it, even though the array is refreshed. In Measurement studio the code is CWGraph1.ClearData but how do I do it in LabView.

dave
0 Kudos
Message 1 of 4
(3,045 Views)
You can do this manually when it is not running by right clicking on the graph, selecting Data Operations>Clear Chart, or when it is running by right clicking and selecting Clear Chart.

Programatically, you can wire a blank numerical array to the history property of the chart in 'write' mode. This can be done at the start or end of your acquisition to clear the graph for the next time the program is run. See attached example in LV 6.0.

*smiles*

Kim
0 Kudos
Message 2 of 4
(3,045 Views)
Create Property Node: Value and set it to empty array.
To create Property Node click on Chart terminal with right button and select "Create Property Node".
0 Kudos
Message 3 of 4
(3,045 Views)
Sorry: instead Value use History Data
0 Kudos
Message 4 of 4
(3,045 Views)