LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zero waveform array

My application acquires data and displays it on a waveform graph.

When I make a second run, the previous run's data is displayed on the plot (I want only the most-recent run to be displayed).  This behavior is not a problem if I close and then open the application before making the second run.

The displayed data is written to a waveform array indicator (for additional processing functionality).  I think I need to zero the waveform array data in the indicator to alway have a fresh plot.

What is the best/easiest way to do this?

TIA

Ken
0 Kudos
Message 1 of 5
(3,027 Views)

Waveform graphs don't retain data. Do you possibly use a waveform chart?

With a chart, you could write an empty array to the "history data" property node at program start, or simply reset the chart to defaults using an invoke node

0 Kudos
Message 2 of 5
(3,021 Views)

Hey Custom,

Here is a VI that demonstrates the different behaviors between the waveform graph and the waveform chart. You can also turn on and off the chart history. It simply uses a property not with the history being changed. I hope this helps.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 5
(2,998 Views)
Here is a modified version that allows you to run continously.
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(2,997 Views)
Thank you Sam and Altenbeck.

Your responses were helpful!

I used the Invoke Node to reset to defaults .
...
0 Kudos
Message 5 of 5
(2,981 Views)