You can use the property node and wire an empty array to the "History Data" property for Waveform Charts.
For waveform graphs --- use property nodes and wire an empty array to the "Value" property. (See attached VI)
"also under file<<vi properties<<execution is "clear indicators when called"
check the box and this clears everything when you push the run button"
Unfortunatelly this clears the graph at the starting point but as soon as first result is there you can also see all old graphs from he previous several runs
Thank you for your sharing.
I have tried on the solution you shared. But the graph from previous iteration will appear when I run for second looping. Do you mind to share with me how to clear the data logging in the graph when running the next loop? As I tried on your solution, whenever Clear button is pressed, the graph will be cleared. However, the graph will be reappear when the Clear button is pressed again. From this, I think the data still store in the indicator. I'm looking forward to receive your advice.
that answer is 11(!) years old. And it still works perfectly.
If something from previous iterations shows up it is because of your code. Do you mind sharing your VI with us?
As I tried on your solution, whenever Clear button is pressed, the graph will be cleared. However, the graph will be reappear when the Clear button is pressed again. From this, I think the data still store in the indicator. I'm looking forward to receive your advice..
Obviously, you are doing somethings wrong, but we cannot troubleshoot without seeing some code.
Is this a graph or a chart? Where is the data kept? (e.g. if the data is in a shift register, you also need to clear that data). What is the mechanical action of your "clear" button? How is the graph terminal connected? Do you have race conditions (e.g. due to local variable over-use)?
fin da small vi attached ..... graphmxy_new.vi
This is my typical Tool for appending X/Y graphs ... Charts I do not like much - in many cases the functionality is limited.
In order to be "small" I have copied an picture of working FrontPanel and its BlockDiagram inside the BlockDiagram of attached vi.
Maybe you will not understand the whole sweep vi - but concentrate on the usage of this small yellow sub.vi
It is now compiled in LV2017 - in case you need an older version - let me know.