LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart auto clear

Solved!
Go to solution

Hello,

 

I am doing data acquisition with labview and showing it on a waveform chart.  I wish to generate an excel file with two columns : time and amplitude automatically after the vi finishs. But everytime I start a new acquisition, the x-axis (time-axis) start from the previous time value and when the excel file is generated, the time doesn't start from 0. I know it is possible to perform"clear chart" from the data operation by right clicking the chart on the front panel, but it is troublesome to do so everytime. Is there any other way to clear the time-axis to 0 for every new launch of the vi?

0 Kudos
Message 1 of 7
(5,561 Views)

You can use reinitialize to default once the program ends and make empty chart as default by selecting edit>Make current values default

0 Kudos
Message 2 of 7
(5,556 Views)
Or simply wire an empty array to the chart history.
0 Kudos
Message 3 of 7
(5,548 Views)

Is it possible to reinitialize to the waveform chart to default values by itself without me having to click on " reinitialize to default values" manuelly before launching the vi?

0 Kudos
Message 4 of 7
(5,545 Views)
Solution
Accepted by topic author Trainee123
You've just been told two different ways to do that. Learn what property nodes and local variables are.
0 Kudos
Message 5 of 7
(5,542 Views)

Thanks for the solution. I did this : Capture.PNGCapture.PNG

 

but the excel generated doesn't save all the data from the waveform chart. It only save a short amount of data. Why is this so? Is there anyway to save all of the data?

0 Kudos
Message 6 of 7
(5,523 Views)
Please take some of those free tutorials that you have been recommended on your other threads. The chart has a history. The default history is 1024 points and when it reaches that number of points, old data is dropped. You can increase the history but of you intend to run for extended periods, you need to save more often.
0 Kudos
Message 7 of 7
(5,515 Views)