LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I make a boolean button (t/f) clear a waveform chart

I am plotting a signal that I have sampled using a waveform Chart. When I reset my application using the reset button, I need to reset the waveform chart as well. Is there a setting for this? Does any have a trick to doing it?
0 Kudos
Message 1 of 5
(3,517 Views)
Have the boolean write an empty array to the Chart.Look at the Chart examples for specifics
0 Kudos
Message 2 of 5
(3,517 Views)
It won't do just to clear the data points. I am trying to make this act as a "reset" option. I need it to clear the data points, and reset the charting at time zero
0 Kudos
Message 3 of 5
(3,517 Views)
The example file "How to clear chart & graphs.vi" in Labview do reset the chart x-axis to 0.
0 Kudos
Message 4 of 5
(3,517 Views)
Hi

Use a property node.

1. right click on the chart and goto create>>property node
2. right click on the property node and goto properties>>history data
3. right click on the property node and select "change to write"
4. right click on the property node and goto "create constant".This will create the "empty" array.

Wire this property so, that it's called when you click your reset button. This will clear the chart and set the initial time to 0.

Hope this helps

Luca
Regards,
Luca
Message 5 of 5
(3,517 Views)