LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I clear the Waveform graph programatically?

How do I clear the Waveform graph programatically?
I thought I could do this using a property-node, but I can't figure out how.
 
Mårten Karlberg, Sweden
0 Kudos
Message 1 of 7
(4,104 Views)
Pass an empty array to the graph's local variable/property node.
0 Kudos
Message 2 of 7
(4,094 Views)
Here is an example:
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 7
(4,066 Views)
There is no need for property nodes. In the above example you would just place the graph terminal in the location of the property node.
 
It is all in the data, the graph clears if it receives an empty array (or an array with all NaNs) as input.
0 Kudos
Message 4 of 7
(4,058 Views)

Thank you very much! Now my application looks much better!

0 Kudos
Message 5 of 7
(4,033 Views)

Good point Altenbach.  That's what I love about LabVIEW, you learn 10 things new everyday!

 

K

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 7
(4,027 Views)

I have an VI where I run continuously a flat sequence structure. In one of the frames I use waveform graphs to display some data. The problem is instead of printing the data on each iteration it adds it to the previous so I am getting n times the same information on the graph. I tried by clearing the graph in the previous frame as it is explained above, but it still keeps printing the history data. Any ideas how could I solve this?

0 Kudos
Message 7 of 7
(3,563 Views)