LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create button to clear/reset graph's displayed data

Solved!
Go to solution

Hello,

 

I'm new here and working with labview. I've searched the forum but didn't found a answer that could help me (or at least I think thank)

 

I'm working on a project to acquire process an ECG signal with a DAQ. In the front panel, I'm trying to display 2 graphs, one showing part of the data in real time and the other showing all the data acquired until that momment. I wanted to add a button to this second graph that, when the user wanted, cleared the data shown in the graph but immediatly continued to show the data.

 

(trying to make myself clearer)

 

"show all data acquired --> press button X --> cleans graph display --> show all data acquired"

 

 

if anyone could help I would be very thankfull!

 

Thank you very much,

FM

 

0 Kudos
Message 1 of 5
(12,691 Views)

Hi FM,

 

when you use a chart you have to clear it's history (using a property node).

When you use a graph instead you have to clear the array that builds the plot(s)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(12,685 Views)

could you give some hints how to make that please?

 

Thank you for the help

0 Kudos
Message 3 of 5
(12,680 Views)
Solution
Accepted by fredjmartins

Hi fred,

 

open the example finder in LabVIEW and look for the example "How to clear Charts & Graphs".

 

Quite easy, don't you think?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(12,671 Views)

thank you very much.

feeling a little silly for not being able to find the example.

 

 

Thank you again!

 

FM

0 Kudos
Message 5 of 5
(12,666 Views)