From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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 to clear a waveform?

I am using Labview 6.1 and am using a DAQ Board to collect data.  I am plotting the data by sampling one data point on each loop iteration.  Each time the data is plotted on a waveform graph.  When I stop the program the waveform stops moving, when I start the program it appends the waveform on the screen.
 
How can I erase, or visually clear, the data on the waveform when the program first starts?  It would also be nice to reset the time on the x-axis of the plot.
0 Kudos
Message 1 of 7
(2,732 Views)
If you create a property node for the waveform, then select "History Data", and then wire an empty constant to it, that will clear your graph - including resetting the x-axis.
0 Kudos
Message 2 of 7
(2,728 Views)
Okay, so I right-clicked on my Waveform Chart in the block diagram and I selected Create > Property Node.  I then right-clicked on the Property Node and selected Properties > History Data.  I then right-clicked on "History" on the Property Node and selected Create > Constant.  I left the constant as zero and placed the property node and constant outside the loop.
 
It doesn't clear the chart or reset the axis.  Did I do something wrong?
0 Kudos
Message 3 of 7
(2,717 Views)
The only thing I can think is if you had the history clear executing after your loop... Just to be sure, it should look like the image.


Wire the error out of the property node to the wall of your loop to make sure it is executed before your loop starts.

Message Edited by Novatron on 08-03-2005 03:42 PM

0 Kudos
Message 4 of 7
(2,713 Views)

How do we do this for Lab View 2010 SP1?

 

Thanks,
Deepak Arora

LAB View 2010 SP1
0 Kudos
Message 5 of 7
(2,227 Views)

The same way.

 

Have you tried it?

0 Kudos
Message 6 of 7
(2,223 Views)

Cutter,

 

I guess, you haven't changed the property node for write. Right click on property node and select Change to write. Refer the screenshot. Once you do that, wire the

 

constant to the input. And call this property node at the begining/end, based on when you want to clear the data.

 

Satish

0 Kudos
Message 7 of 7
(2,203 Views)